From ef367c29811232403cf0032d569ad3c34b3f2c14 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 09:07:48 -0400 Subject: [PATCH] Array index not 1 --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index e85a5f83..911ec975 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -53,7 +53,7 @@ public enum BuildingManager { return Vector3fImmutable.ZERO; BuildingLocation buildingLocation; - buildingLocation = _slotLocations.get(building.meshUUID).get(slot); + buildingLocation = _slotLocations.get(building.meshUUID).get(slot - 1); // array index if (buildingLocation == null) { Logger.error("Invalid slot for building: " + building.getObjectUUID());