From aa1fe792a3cae6275e615a566c345bd3b236f4fd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 26 Jun 2024 19:57:50 -0500 Subject: [PATCH] Load enforceKOS for buildings --- src/engine/objects/Building.java | 5 +++++ 1 file changed, 5 insertions(+) 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); }