mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 19:47:51 +01:00
Fix packet sending
This commit is contained in:
parent
e92c980062
commit
d5dcd11d19
@ -358,7 +358,7 @@ public class NMS {
|
||||
radius *= radius;
|
||||
final org.bukkit.World world = location.getWorld();
|
||||
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;
|
||||
}
|
||||
if (location.distanceSquared(ply.getLocation(PACKET_CACHE_LOCATION)) > radius) {
|
||||
|
Loading…
Reference in New Issue
Block a user