From 042a292b315a0d132dec453e782890a6318331c5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 24 Feb 2024 20:36:23 -0600 Subject: [PATCH] realm override --- src/engine/objects/Realm.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Realm.java b/src/engine/objects/Realm.java index a78b5e6b..2c03ab98 100644 --- a/src/engine/objects/Realm.java +++ b/src/engine/objects/Realm.java @@ -88,7 +88,11 @@ public class Realm { this.canPlaceCities = rs.getBoolean("canPlaceCities"); this.numCities = rs.getInt("numCities"); this.rulingCityUUID = rs.getInt("rulingCityUID"); - this.charterType = rs.getInt("charterType"); + if(this.rulingCityUUID == 0){ + this.charterType = rs.getInt("charterType"); + }else { + this.charterType = 0; + } this.realmName = rs.getString("realmName"); } @@ -121,6 +125,7 @@ public class Realm { case "nordenthol": case "thollmar": case "haldorn isles": + case "hregenlund": return true; } return false;