From a64932b2c976182a6351ee282addfe4459b3b488 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 20:04:17 -0600 Subject: [PATCH] Revert "npc manager error spam" This reverts commit 685297171ca437efacbe25431c3a58d2af4292ba. --- src/engine/gameManager/NPCManager.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/engine/gameManager/NPCManager.java b/src/engine/gameManager/NPCManager.java index 6d7ff484..5da96eb8 100644 --- a/src/engine/gameManager/NPCManager.java +++ b/src/engine/gameManager/NPCManager.java @@ -354,18 +354,7 @@ public enum NPCManager { // Rotate slot position by the building rotation - if (abstractCharacter != null && abstractCharacter.building != null && abstractCharacter.bindLoc != null - && abstractCharacter.building.getLoc() != null && abstractCharacter.building.getBounds() != null - && abstractCharacter.building.getBounds().getQuaternion() != null) { - abstractCharacter.bindLoc = Vector3fImmutable.rotateAroundPoint( - abstractCharacter.building.getLoc(), - abstractCharacter.bindLoc, - abstractCharacter.building.getBounds().getQuaternion().angleY - ); - } else { - Logger.error("Null value detected in abstractCharacter or its properties. Skipping rotation logic."); - // Handle the case where one or more objects are null, if needed - } + abstractCharacter.bindLoc = Vector3fImmutable.rotateAroundPoint(abstractCharacter.building.getLoc(), abstractCharacter.bindLoc, abstractCharacter.building.getBounds().getQuaternion().angleY); abstractCharacter.loc = new Vector3fImmutable(abstractCharacter.bindLoc);