Make canSee do stuff
This commit is contained in:
parent
7505b0aca8
commit
58485e9b1c
@ -17,7 +17,11 @@ public abstract class TargettedDisguise extends Disguise {
|
||||
}
|
||||
|
||||
public boolean canSee(String playername) {
|
||||
return disguiseViewers.contains(playername);
|
||||
boolean contains = disguiseViewers.contains(playername);
|
||||
if (targetType == TargetType.HIDE_FROM_THESE) {
|
||||
return !contains;
|
||||
}
|
||||
return contains;
|
||||
}
|
||||
|
||||
public void setViewDisguise(Player player) {
|
||||
|
Loading…
Reference in New Issue
Block a user