Whoops, need this commit too.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-06-09 23:56:42 -07:00
parent 6592607d08
commit 648b50c4f4

View file

@ -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);
}