From eed6da3f46bfa9f793e6040c6dca8eabd2e0ca1d Mon Sep 17 00:00:00 2001 From: JitseB Date: Mon, 7 May 2018 10:22:11 +0200 Subject: [PATCH] Removed debug message (#7). --- commons/src/main/java/net/jitse/npclib/api/NPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons/src/main/java/net/jitse/npclib/api/NPC.java b/commons/src/main/java/net/jitse/npclib/api/NPC.java index 2b3469d..be61c28 100644 --- a/commons/src/main/java/net/jitse/npclib/api/NPC.java +++ b/commons/src/main/java/net/jitse/npclib/api/NPC.java @@ -147,7 +147,7 @@ public abstract class NPC { public boolean canSeeNPC(Player player) { Vector dir = location.toVector().subtract(player.getEyeLocation().toVector()).normalize(); double dot = dir.dot(player.getLocation().getDirection()); - Bukkit.broadcastMessage("dot: " + dot); + // 0.5 equals a FOV of 60 deg (but should be 0.55) // We want to spawn the NPC *just* before the player can see it. return dot >= 0.5;