Slot is index driven.
This commit is contained in:
@@ -88,7 +88,7 @@ public enum BuildingManager {
|
||||
if (slot == -1)
|
||||
return buildingLocation;
|
||||
|
||||
buildingLocation = _slotLocations.get(building.meshUUID).get(slot - 1); // array index
|
||||
buildingLocation = _slotLocations.get(building.meshUUID).get(slot); // array index
|
||||
|
||||
if (buildingLocation == null) {
|
||||
Logger.error("Invalid slot for building: " + building.getObjectUUID());
|
||||
@@ -105,7 +105,7 @@ public enum BuildingManager {
|
||||
|
||||
for (AbstractCharacter hireling : building.hirelings) {
|
||||
|
||||
hireling.setLoc(getSlotLocation(building, building.hirelings.indexOf(hireling) + 1).getLocation());
|
||||
hireling.setLoc(getSlotLocation(building, building.hirelings.indexOf(hireling)).getLocation());
|
||||
InterestManager.setObjectDirty(hireling);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user