Bugfix: Only check distance between players in the same world!
This commit is contained in:
parent
d29ad9a474
commit
53e2be6be7
@ -119,7 +119,7 @@ public class GateBlockChangeSender
|
||||
|
||||
for (Player p : Plugin.getPlugin().getServer().getOnlinePlayers()) {
|
||||
|
||||
if (p.getLocation().distance(gateLocation) < searchRadius) {
|
||||
if (p.getWorld() == gateLocation.getWorld() && p.getLocation().distance(gateLocation) < searchRadius) {
|
||||
playersNearby.add(p);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user