forked from MagicBane/Server
Array index not 1
This commit is contained in:
@@ -53,7 +53,7 @@ public enum BuildingManager {
|
|||||||
return Vector3fImmutable.ZERO;
|
return Vector3fImmutable.ZERO;
|
||||||
|
|
||||||
BuildingLocation buildingLocation;
|
BuildingLocation buildingLocation;
|
||||||
buildingLocation = _slotLocations.get(building.meshUUID).get(slot);
|
buildingLocation = _slotLocations.get(building.meshUUID).get(slot - 1); // array index
|
||||||
|
|
||||||
if (buildingLocation == null) {
|
if (buildingLocation == null) {
|
||||||
Logger.error("Invalid slot for building: " + building.getObjectUUID());
|
Logger.error("Invalid slot for building: " + building.getObjectUUID());
|
||||||
|
|||||||
Reference in New Issue
Block a user