From bd83ff0c80cf8c3f2c759e5a457856d26847bb9d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 5 Dec 2013 21:06:52 +1300 Subject: [PATCH] Fix bug. And it only removes the disguises targeted towards certain players. --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 66cced71..1111d9fb 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -171,10 +171,10 @@ public class DisguiseUtilities { for (TargetedDisguise disguise : disguises) { if (disguise.getDisguiseTarget() == TargetType.HIDE_DISGUISE_TO_EVERYONE_BUT_THESE_PLAYERS) { if (disguise.canSee(viewer)) { - boolean add = false; + boolean add = true; for (String observer : disguise.getObservers()) { if (!observer.equals(viewer) && Bukkit.getPlayerExact(observer) != null) { - add = true; + add = false; break; } }