Browse Source

Load enforceKOS for buildings

postwipe-hostile
FatBoy-DOTC 6 months ago
parent
commit
aa1fe792a3
  1. 5
      src/engine/objects/Building.java

5
src/engine/objects/Building.java

@ -163,6 +163,11 @@ public class Building extends AbstractWorldObject { @@ -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);
}

Loading…
Cancel
Save