mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 20:31:30 +01:00
Give slightly more leeway for lookclose range
This commit is contained in:
parent
94a798ca45
commit
8c35505444
@ -146,7 +146,7 @@ public class LookClose extends Trait implements Toggleable {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
double min = range;
|
||||
double min = Double.MAX_VALUE;
|
||||
Location npcLoc = npc.getStoredLocation();
|
||||
for (Player player : getNearbyPlayers()) {
|
||||
double dist = player.getLocation().distance(npcLoc);
|
||||
|
Loading…
Reference in New Issue
Block a user