Array index not 1

This commit is contained in:
MagicBot committed 2023-04-29 09:07:48 -04:00
1 parent ec10ac7ba5
commit ef367c2981
1 file changed
+1 -1
+1 -1
View File
@@ -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());