Browse Source

zone override

birdbane
FatBoy-DOTC 9 months ago
parent
commit
2bfdc0f203
  1. 8
      src/engine/objects/Realm.java

8
src/engine/objects/Realm.java

@ -97,12 +97,14 @@ public class Realm {
} }
java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince"); java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince");
if (ruledTimeStamp != null) if (ruledTimeStamp != null){
this.ruledSince = LocalDateTime.ofInstant(ruledTimeStamp.toInstant(), ZoneId.systemDefault()); this.ruledSince = LocalDateTime.ofInstant(ruledTimeStamp.toInstant(), ZoneId.systemDefault());
}else {
this.rulingCityUUID = 0;
this.charterType = 0;
}
this.mapY1 = rs.getFloat("mapY1"); this.mapY1 = rs.getFloat("mapY1");
this.mapX1 = rs.getFloat("mapX1"); this.mapX1 = rs.getFloat("mapX1");
this.mapY2 = rs.getFloat("mapY2"); this.mapY2 = rs.getFloat("mapY2");

Loading…
Cancel
Save