From 3a63f98ac3b5b161d5ab4ea62efa4d203eb6a813 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Oct 2023 08:09:42 -0400 Subject: [PATCH] Error log added --- src/engine/objects/Building.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index 18715e6c..b60415e3 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -928,6 +928,9 @@ public class Building extends AbstractWorldObject { this.patrolPoints = BuildingManager._buildingPatrolPoints.computeIfAbsent(this.getObjectUUID(), k -> new ArrayList<>()); + if (this.patrolPoints == null) + Logger.error("Null patrol points"); + } else { this.healthMax = 100000; // Structures with no blueprint mesh this.setHealth(healthMax);