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:
NavidK0
2015-08-01 19:24:18 -04:00
parent bdb436711f
commit 037da7e980
3 changed files with 6 additions and 4 deletions

View File

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

View File

@@ -1,6 +1,6 @@
name: LibsDisguises
main: me.libraryaddict.disguise.LibsDisguises
version: 8.6.2
version: 8.6.3
author: libraryaddict
authors: [Byteflux, Navid K.]
depend: [ProtocolLib]