Update other code to reflect this
This commit is contained in:
parent
58485e9b1c
commit
4aa148d1eb
@ -260,9 +260,7 @@ public class DisguiseUtilities {
|
|||||||
public static TargettedDisguise getDisguise(Player observer, int entityId) {
|
public static TargettedDisguise getDisguise(Player observer, int entityId) {
|
||||||
if (getDisguises().containsKey(entityId)) {
|
if (getDisguises().containsKey(entityId)) {
|
||||||
for (TargettedDisguise disguise : getDisguises().get(entityId)) {
|
for (TargettedDisguise disguise : getDisguises().get(entityId)) {
|
||||||
if (disguise.getTargetType() == TargetType.HIDE_FROM_THESE && !disguise.canSee(observer)) {
|
if (disguise.canSee(observer)) {
|
||||||
return disguise;
|
|
||||||
} else if (disguise.getTargetType() == TargetType.SHOW_TO_THESE && disguise.canSee(observer)) {
|
|
||||||
return disguise;
|
return disguise;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user