Fix bar disguise toggle
This commit is contained in:
parent
8a59d64702
commit
dd05e3e411
@ -461,7 +461,7 @@ public class DisguiseAPI {
|
||||
}
|
||||
|
||||
public static boolean hasActionBarPreference(Entity entity) {
|
||||
return DisguiseUtilities.getViewSelf().contains(entity.getUniqueId());
|
||||
return DisguiseUtilities.getViewBar().contains(entity.getUniqueId());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -516,7 +516,7 @@ public class DisguiseAPI {
|
||||
|
||||
// If default is view and we want the opposite
|
||||
if (!isShown) {
|
||||
if (!hasSelfDisguisePreference(player)) {
|
||||
if (!hasActionBarPreference(player)) {
|
||||
DisguiseUtilities.getViewBar().add(player.getUniqueId());
|
||||
DisguiseUtilities.addSaveAttempt();
|
||||
}
|
||||
|
@ -396,6 +396,6 @@ public enum LibsMsg {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
throw new RuntimeException("Dont call this");
|
||||
throw new IllegalStateException("Dont call this");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user