diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index 9ffbcf28..5367c8f7 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -163,6 +163,11 @@ public class Building extends AbstractWorldObject { if (upgradeTimeStamp != null) this.upgradeDateTime = LocalDateTime.ofInstant(upgradeTimeStamp.toInstant(), ZoneId.systemDefault()); + if(rs.getInt("enforceKOS") == 0) + this.enforceKOS = false; + else + this.enforceKOS = true; + } catch (Exception e) { Logger.error("Failed for object " + this.blueprintUUID + ' ' + this.getObjectUUID() + e); }