diff --git a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java index 2221c06b..cb75001b 100644 --- a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java +++ b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java @@ -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(); } diff --git a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java index 5e26e9de..21df6d3b 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java @@ -396,6 +396,6 @@ public enum LibsMsg { } public String toString() { - throw new RuntimeException("Dont call this"); + throw new IllegalStateException("Dont call this"); } }