From c06bc97640c80a4fc8b0c55e56606c05a26b854b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 22 Jul 2023 11:04:32 -0400 Subject: [PATCH] Only rotate once --- src/engine/objects/NPC.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 3cb6868a..e4851196 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -814,11 +814,6 @@ public class NPC extends AbstractCharacter { this.loc = new Vector3fImmutable(bindLoc); - // Rotate NPC by slot rotation - - slotRotation = BuildingManager.getSlotLocation(building, slot).getRotation(); - this.setRot(new Vector3f(0, slotRotation.y, 0)); - // Rotate NPC rotation by the building's rotation slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y) * 2, 0);