From 53e2be6be79e2cd229a13fac6e39efd7e418349d Mon Sep 17 00:00:00 2001 From: Paul Schulze Date: Sun, 23 Jun 2013 15:32:33 +0200 Subject: [PATCH] Bugfix: Only check distance between players in the same world! --- src/de/craftinc/gates/util/GateBlockChangeSender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/craftinc/gates/util/GateBlockChangeSender.java b/src/de/craftinc/gates/util/GateBlockChangeSender.java index 12022bf..11f86b1 100644 --- a/src/de/craftinc/gates/util/GateBlockChangeSender.java +++ b/src/de/craftinc/gates/util/GateBlockChangeSender.java @@ -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); } }