Updated for 1.8.8.
Compiled against ProtocolLib 3.6.5. Fixed a nullpointerexception In Disguise when the disguise would rarely despawn causing the entity to be invalid.
This commit is contained in:
@@ -397,8 +397,10 @@ public abstract class Disguise {
|
||||
|
||||
/**
|
||||
* Internal use
|
||||
* @return
|
||||
*/
|
||||
public boolean isRemoveDisguiseOnDeath() {
|
||||
if (getEntity() == null) return true;
|
||||
return getEntity() instanceof Player ?
|
||||
|
||||
(!((Player) getEntity()).isOnline() ? !isKeepDisguiseOnPlayerLogout() : !isKeepDisguiseOnPlayerDeath())
|
||||
|
Reference in New Issue
Block a user