Give slightly more leeway for lookclose range

This commit is contained in:
fullwall 2023-07-08 21:43:23 +08:00
parent 94a798ca45
commit 8c35505444

View File

@ -146,7 +146,7 @@ public class LookClose extends Trait implements Toggleable {
} }
} }
} else { } else {
double min = range; double min = Double.MAX_VALUE;
Location npcLoc = npc.getStoredLocation(); Location npcLoc = npc.getStoredLocation();
for (Player player : getNearbyPlayers()) { for (Player player : getNearbyPlayers()) {
double dist = player.getLocation().distance(npcLoc); double dist = player.getLocation().distance(npcLoc);