mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Whoops, need this commit too.
This commit is contained in:
parent
bf4a4a767c
commit
e5c6b329d5
1 changed files with 1 additions and 1 deletions
|
@ -665,7 +665,7 @@ public class CraftWorld implements World {
|
||||||
Packet61 packet = new Packet61(packetData, location.getBlockX(), location.getBlockY(), location.getBlockZ(), data);
|
Packet61 packet = new Packet61(packetData, location.getBlockX(), location.getBlockY(), location.getBlockZ(), data);
|
||||||
int distance;
|
int distance;
|
||||||
for (Player player : getPlayers()) {
|
for (Player player : getPlayers()) {
|
||||||
distance = (int) player.getLocation().distanceTo(location);
|
distance = (int) player.getLocation().distance(location);
|
||||||
if (distance <= radius) {
|
if (distance <= radius) {
|
||||||
((CraftPlayer) player).getHandle().netServerHandler.sendPacket(packet);
|
((CraftPlayer) player).getHandle().netServerHandler.sendPacket(packet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue