From aca0ff52d6fb2a71a9343450e835d73613d5d4a7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 7 Nov 2023 18:48:31 -0600 Subject: [PATCH] disable mob movement temporarily --- src/engine/gameManager/NavigationManager.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/engine/gameManager/NavigationManager.java b/src/engine/gameManager/NavigationManager.java index a129256d..d413bd70 100644 --- a/src/engine/gameManager/NavigationManager.java +++ b/src/engine/gameManager/NavigationManager.java @@ -12,18 +12,18 @@ public class NavigationManager { private static final int stepHeight = 2; public static void pathfind(AbstractCharacter character, Vector3fImmutable goal){ - try { - ArrayList path = getOptimizedPath(getPath(character.loc, goal), getPath(goal, character.loc)); - if (path.isEmpty()) { - character.destination = goal; - return; //no points to walk to - } + //try { + // ArrayList path = getOptimizedPath(getPath(character.loc, goal), getPath(goal, character.loc)); + // if (path.isEmpty()) { + // character.destination = goal; + // return; //no points to walk to + // } - character.destination = path.get(0); + // character.destination = path.get(0); - } catch(Exception e){ + //} catch(Exception e){ //something failed - } + //} } public static ArrayList getOptimizedPath(ArrayList startToGoal, ArrayList goalToStart) {