diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 9c10cbcf..51cbb3f8 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -1049,6 +1049,9 @@ public enum BuildingManager { building.meshes = new ArrayList<>(); + if(_hull_data.get(building.meshUUID) == null || _hull_data.get(building.meshUUID).size() < 1) + return; + for (Path2D.Float path : _hull_data.get(building.meshUUID)) { Path2D.Float translatedPath = new Path2D.Float(path);