From f152c677c608abb1cc5d2166a958d51a92522db2 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 13 Aug 2013 22:05:13 +1200 Subject: [PATCH] Fix the disguises only refreshing theirselves --- src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java b/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java index e3872b26..b776a95f 100644 --- a/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java +++ b/src/me/libraryaddict/disguise/DisguiseTypes/Disguise.java @@ -220,6 +220,8 @@ public class Disguise { if (((CraftEntity) getEntity()).getHandle().valid) { // If this disguise is active if (disguises.containsKey(getEntity().getEntityId()) && disguises.get(getEntity().getEntityId()) == this) { + // Now remove the disguise from the current disguises. + disguises.remove(getEntity().getEntityId()); // Gotta do reflection, copy code or open up calls. // Reflection is the cleanest? if (entity instanceof Player) { @@ -227,8 +229,6 @@ public class Disguise { } // Better refresh the entity to undisguise it disguiseAPI.refreshWatchingPlayers(getEntity()); - // Now remove the disguise from the current disguises. - disguises.remove(getEntity().getEntityId()); } } } else {