Bugfix: Only check distance between players in the same world!

This commit is contained in:
Paul Schulze 2013-06-23 15:32:33 +02:00
parent d29ad9a474
commit 53e2be6be7

View File

@ -119,7 +119,7 @@ public class GateBlockChangeSender
for (Player p : Plugin.getPlugin().getServer().getOnlinePlayers()) { 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); playersNearby.add(p);
} }
} }