Browse Source

Error log added

combat-2
MagicBot 1 year ago
parent
commit
3a63f98ac3
  1. 3
      src/engine/objects/Building.java

3
src/engine/objects/Building.java

@ -928,6 +928,9 @@ public class Building extends AbstractWorldObject {
this.patrolPoints = BuildingManager._buildingPatrolPoints.computeIfAbsent(this.getObjectUUID(), k -> new ArrayList<>()); this.patrolPoints = BuildingManager._buildingPatrolPoints.computeIfAbsent(this.getObjectUUID(), k -> new ArrayList<>());
if (this.patrolPoints == null)
Logger.error("Null patrol points");
} else { } else {
this.healthMax = 100000; // Structures with no blueprint mesh this.healthMax = 100000; // Structures with no blueprint mesh
this.setHealth(healthMax); this.setHealth(healthMax);

Loading…
Cancel
Save