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

This commit is contained in:
Paul Schulze committed 2013-06-23 15:32:33 +02:00
1 parent d29ad9a474
commit 53e2be6be7
1 file changed
+1 -1
@@ -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);
}
}