From 648b50c4f43a4559dd368927801d7b1317f646e7 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 9 Jun 2011 23:56:42 -0700 Subject: [PATCH] Whoops, need this commit too. By: sk89q --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index baa1c3f26e..bc2b3fdb3f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -665,7 +665,7 @@ public class CraftWorld implements World { Packet61 packet = new Packet61(packetData, location.getBlockX(), location.getBlockY(), location.getBlockZ(), data); int distance; for (Player player : getPlayers()) { - distance = (int) player.getLocation().distanceTo(location); + distance = (int) player.getLocation().distance(location); if (distance <= radius) { ((CraftPlayer) player).getHandle().netServerHandler.sendPacket(packet); }