From 44e988b7d7c47b5349584b082ab4766f6fd90b09 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 18 Dec 2022 15:43:40 +0800 Subject: [PATCH] Remove debugging code --- .../java/net/citizensnpcs/npc/ai/CitizensNavigator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java b/main/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java index 249f9d889..65a65c081 100644 --- a/main/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java +++ b/main/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java @@ -181,12 +181,7 @@ public class CitizensNavigator implements Navigator, Runnable { if (!finished) { localParams.run(); } - localParams.lookAtFunction((n) -> { - if (Bukkit.getServer().getPlayer("fullwall") == null) { - return n.getTargetAsLocation(); - } - return Bukkit.getServer().getPlayer("fullwall").getLocation(); - }); + if (localParams.lookAtFunction() != null) { if (session == null) { RotationTrait trait = npc.getOrAddTrait(RotationTrait.class);