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())
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user