From fb42ffa097410c6231477aa90753388a2ccae41e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 3 Apr 2014 20:53:02 +1300 Subject: [PATCH] Always refresh the disguise. Some plugins like to set the entities health. --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index 9bc8a072..9766c0af 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -399,11 +399,8 @@ public abstract class Disguise { DisguiseUtilities.removeSelfDisguise((Player) getEntity()); } - // If the entity is not dead - if (getEntity().isValid()) { - // Better refresh the entity to undisguise it - DisguiseUtilities.refreshTrackers((TargetedDisguise) this); - } + // Better refresh the entity to undisguise it + DisguiseUtilities.refreshTrackers((TargetedDisguise) this); } } else { // Loop through the disguises because it could be used with a unknown entity id.