Just use isOnline()

This commit is contained in:
libraryaddict 2014-05-24 05:04:12 +12:00
parent 81854db3d0
commit a4f9666cd0

View File

@ -368,8 +368,7 @@ public abstract class Disguise {
public boolean isRemoveDisguiseOnDeath() {
return getEntity() instanceof Player ?
(Bukkit.getPlayerExact(((Player) getEntity()).getName()) == null ? !isKeepDisguiseOnPlayerLogout()
: !isKeepDisguiseOnPlayerDeath())
(((Player) getEntity()).isOnline() ? !isKeepDisguiseOnPlayerLogout() : !isKeepDisguiseOnPlayerDeath())
: