diff --git a/src/engine/devcmd/cmds/SlotTestCmd.java b/src/engine/devcmd/cmds/SlotTestCmd.java index 7ab33737..6fbac8a9 100644 --- a/src/engine/devcmd/cmds/SlotTestCmd.java +++ b/src/engine/devcmd/cmds/SlotTestCmd.java @@ -54,7 +54,7 @@ public class SlotTestCmd extends AbstractDevCmd { int slot = Integer.parseInt(args[0]); Vector3fImmutable slotLocation; - BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); + BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot - 1); slotLocation = building.getLoc().add(buildingLocation.getLocation()); slotLocation = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotLocation, building.getBounds().getQuaternion().angleY); playerCharacter.teleport(slotLocation);