From d5ca5993aa096fad69a190694c762569e67ae7fa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 3 May 2023 18:06:28 -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 2d48f9f2..2024978c 100644 --- a/src/engine/devcmd/cmds/SlotTestCmd.java +++ b/src/engine/devcmd/cmds/SlotTestCmd.java @@ -55,7 +55,7 @@ public class SlotTestCmd extends AbstractDevCmd { int slot = Integer.parseInt(args[0]); Vector3fImmutable slotPosition; BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); - slotPosition = slotLocation.getLocation(); + slotPosition = building.getLoc().add(slotLocation.getLocation()); slotPosition = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotPosition, building.getBounds().getQuaternion().angleY); playerCharacter.teleport(slotPosition); return;