Browse Source

log null blueprint in destroy city thread

magicbox-1.5.2.1
FatBoy-DOTC 1 week ago
parent
commit
28836a7a4f
  1. 6
      src/engine/workthreads/DestroyCityThread.java

6
src/engine/workthreads/DestroyCityThread.java

@ -95,6 +95,12 @@ public class DestroyCityThread implements Runnable { @@ -95,6 +95,12 @@ public class DestroyCityThread implements Runnable {
if (cityBuilding == null)
continue;
// check null bluepritn and log error
if (cityBuilding.getBlueprint() == null){
Logger.error("Null Blueprint for building ID: " + cityBuilding.getObjectUUID());
continue;
}
// Do nothing with the banestone. It will be removed elsewhere
if (cityBuilding.getBlueprint().getBuildingGroup().equals(mbEnums.BuildingGroup.BANESTONE))

Loading…
Cancel
Save