Update other code to reflect this

This commit is contained in:
libraryaddict 2013-12-02 01:35:43 +13:00
parent 58485e9b1c
commit 4aa148d1eb

View File

@ -260,9 +260,7 @@ public class DisguiseUtilities {
public static TargettedDisguise getDisguise(Player observer, int entityId) {
if (getDisguises().containsKey(entityId)) {
for (TargettedDisguise disguise : getDisguises().get(entityId)) {
if (disguise.getTargetType() == TargetType.HIDE_FROM_THESE && !disguise.canSee(observer)) {
return disguise;
} else if (disguise.getTargetType() == TargetType.SHOW_TO_THESE && disguise.canSee(observer)) {
if (disguise.canSee(observer)) {
return disguise;
}
}