Fix packet sending

This commit is contained in:
fullwall 2014-03-12 16:21:36 +08:00
parent e92c980062
commit d5dcd11d19

View File

@ -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) {