Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Whoops, need this commit too.
Dieser Commit ist enthalten in:
Ursprung
bf4a4a767c
Commit
e5c6b329d5
@ -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);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren