diff --git a/src/main/java/baritone/Settings.java b/src/main/java/baritone/Settings.java index 9b918416..6a30099c 100644 --- a/src/main/java/baritone/Settings.java +++ b/src/main/java/baritone/Settings.java @@ -323,7 +323,7 @@ public class Settings { } @SuppressWarnings("unchecked") - public List> getByValueType(Class klass) { + public List> getAllValuesByType(Class klass) { List> result = new ArrayList<>(); for (Setting setting : allSettings) { if (setting.klass.equals(klass)) { diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index e7c637d7..59cafd6b 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -286,7 +286,7 @@ public class ExampleBaritoneControl extends Behavior { event.cancel(); return; } - List> toggleable = Baritone.settings().getByValueType(Boolean.class); + List> toggleable = Baritone.settings().getAllValuesByType(Boolean.class); for (Settings.Setting setting : toggleable) { if (msg.equalsIgnoreCase(setting.getName())) { setting.value ^= true;