From 67a5b1749cd1f06efb67916ce531afcef7faad11 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 24 Feb 2024 20:21:24 -0600 Subject: [PATCH] realm override --- src/engine/objects/Realm.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Realm.java b/src/engine/objects/Realm.java index fed8f76e..a78b5e6b 100644 --- a/src/engine/objects/Realm.java +++ b/src/engine/objects/Realm.java @@ -80,14 +80,19 @@ public class Realm { this.canBeClaimed = false; this.canPlaceCities = false; this.numCities = 0; + this.rulingCityUUID = 0; + this.charterType = 0; + this.realmName = "Plagued Land"; }else { this.canBeClaimed = rs.getBoolean("canBeClaimed"); this.canPlaceCities = rs.getBoolean("canPlaceCities"); this.numCities = rs.getInt("numCities"); + this.rulingCityUUID = rs.getInt("rulingCityUID"); + this.charterType = rs.getInt("charterType"); + this.realmName = rs.getString("realmName"); } - this.realmName = rs.getString("realmName"); - this.rulingCityUUID = rs.getInt("rulingCityUID"); - this.charterType = rs.getInt("charterType"); + + java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince");