forked from MagicBane/Server
Load enforceKOS for buildings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user