Added a fix for players who can't see other players

This commit is contained in:
Andrew 2013-05-29 11:00:31 +12:00
parent 89fdbad410
commit d55f718a8a

View File

@ -153,6 +153,8 @@ public class DisguiseAPI {
Iterator itel = entry.trackedPlayers.iterator();
while (itel.hasNext()) {
EntityPlayer player = (EntityPlayer) itel.next();
if (entity instanceof Player && !player.getBukkitEntity().canSee((Player) entity))
continue;
entry.clear(player);
entry.updatePlayer(player);
}