Fix bug. And it only removes the disguises targeted towards certain players.

This commit is contained in:
libraryaddict 2013-12-05 21:06:52 +13:00
parent 6e5241aec3
commit bd83ff0c80

View File

@ -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;
}
}