Browse Source

guards

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
5f5616fd2d
  1. 7
      src/engine/objects/Realm.java

7
src/engine/objects/Realm.java

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

Loading…
Cancel
Save