guards
This commit is contained in:
@@ -91,9 +91,12 @@ 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");
|
||||||
|
|||||||
Reference in New Issue
Block a user