From 2a52f9adef8ac84dc88c5d379f038cad67359f30 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 3 May 2023 18:20:47 -0400 Subject: [PATCH] slottest function expanded. --- src/engine/devcmd/cmds/SlotTestCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);