Browse Source

Array index not 1

master
MagicBot 2 years ago
parent
commit
ef367c2981
  1. 2
      src/engine/gameManager/BuildingManager.java

2
src/engine/gameManager/BuildingManager.java

@ -53,7 +53,7 @@ public enum BuildingManager { @@ -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());

Loading…
Cancel
Save