Complete JodaTime -> java.time migration (remaining objects, db handlers, net msg, jobs) + QC pass; untrack working reference files
This commit is contained in:
1 parent
efd35e89f1
commit
93eb77fcc8
26 files changed
+160
-426
No files matched your search
@@ -14,7 +14,6 @@ import engine.gameManager.PowersManager;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.msg.ItemProductionMsg;
|
||||
import engine.powers.EffectsBase;
|
||||
import org.joda.time.DateTime;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
@@ -26,7 +25,7 @@ public class ProducedItem {
|
||||
private int ID;
|
||||
private int npcUID;
|
||||
private int itemBaseID;
|
||||
private DateTime dateToUpgrade;
|
||||
private long dateToUpgrade;
|
||||
private boolean isRandom;
|
||||
|
||||
private String prefix;
|
||||
@@ -52,9 +51,9 @@ public class ProducedItem {
|
||||
Date sqlDateTime = rs.getTimestamp("dateToUpgrade");
|
||||
|
||||
if (sqlDateTime != null)
|
||||
this.dateToUpgrade = new DateTime(sqlDateTime);
|
||||
this.dateToUpgrade = sqlDateTime.getTime();
|
||||
else
|
||||
dateToUpgrade = null;
|
||||
dateToUpgrade = 0;
|
||||
this.isRandom = rs.getBoolean("isRandom");
|
||||
this.prefix = rs.getString("prefix");
|
||||
this.suffix = rs.getString("suffix");
|
||||
@@ -64,7 +63,7 @@ public class ProducedItem {
|
||||
this.playerID = rs.getInt("playerID");
|
||||
}
|
||||
|
||||
public ProducedItem(int ID, int npcUID, int itemBaseID, DateTime dateToUpgrade, boolean isRandom, String prefix, String suffix, String name, int playerID) {
|
||||
public ProducedItem(int ID, int npcUID, int itemBaseID, long dateToUpgrade, boolean isRandom, String prefix, String suffix, String name, int playerID) {
|
||||
super();
|
||||
this.ID = ID;
|
||||
this.npcUID = npcUID;
|
||||
@@ -84,7 +83,7 @@ public class ProducedItem {
|
||||
return npcUID;
|
||||
}
|
||||
|
||||
public DateTime getDateToUpgrade() {
|
||||
public long getDateToUpgrade() {
|
||||
return dateToUpgrade;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user