Fix bar disguise toggle

This commit is contained in:
libraryaddict 2020-07-04 00:59:33 +12:00
parent 8a59d64702
commit dd05e3e411
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -396,6 +396,6 @@ public enum LibsMsg {
}
public String toString() {
throw new RuntimeException("Dont call this");
throw new IllegalStateException("Dont call this");
}
}