Only rotate once

This commit is contained in:
2023-07-22 11:04:32 -04:00
parent 5899bb535b
commit c06bc97640
-5
View File
@@ -814,11 +814,6 @@ public class NPC extends AbstractCharacter {
this.loc = new Vector3fImmutable(bindLoc); 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 // Rotate NPC rotation by the building's rotation
slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y) * 2, 0); slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y) * 2, 0);