forked from MagicBane/Server
Slot is index driven.
This commit is contained in:
@@ -53,7 +53,7 @@ public class SlotTestCmd extends AbstractDevCmd {
|
||||
|
||||
int slot = Integer.parseInt(args[0]);
|
||||
Vector3fImmutable slotLocation;
|
||||
BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot - 1);
|
||||
BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot);
|
||||
slotLocation = building.getLoc().add(buildingLocation.getLocation());
|
||||
slotLocation = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotLocation, building.getBounds().getQuaternion().angleY);
|
||||
playerCharacter.teleport(slotLocation);
|
||||
@@ -71,7 +71,7 @@ public class SlotTestCmd extends AbstractDevCmd {
|
||||
outString += "Hirelings List:";
|
||||
|
||||
for (AbstractCharacter hireling : building.hirelings)
|
||||
outString += "\r\n" + hireling.getName() + " slot : " + building.hirelings.indexOf(hireling) + 1;
|
||||
outString += "\r\n" + hireling.getName() + " slot : " + building.hirelings.indexOf(hireling);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user