mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 20:17:50 +01:00
Fix packet sending
This commit is contained in:
parent
e92c980062
commit
d5dcd11d19
@ -358,7 +358,7 @@ public class NMS {
|
|||||||
radius *= radius;
|
radius *= radius;
|
||||||
final org.bukkit.World world = location.getWorld();
|
final org.bukkit.World world = location.getWorld();
|
||||||
for (Player ply : Bukkit.getServer().getOnlinePlayers()) {
|
for (Player ply : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
if (ply == null || world != ply.getWorld() || (from != null && ply.canSee(from))) {
|
if (ply == null || world != ply.getWorld() || (from != null && !ply.canSee(from))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (location.distanceSquared(ply.getLocation(PACKET_CACHE_LOCATION)) > radius) {
|
if (location.distanceSquared(ply.getLocation(PACKET_CACHE_LOCATION)) > radius) {
|
||||||
|
Loading…
Reference in New Issue
Block a user