From 3bf4b997b096467044048d2184e253968d9c07b5 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 27 Aug 2018 13:39:36 -0500 Subject: [PATCH] Rename getByValueType to getAllValuesByType --- src/main/java/baritone/Settings.java | 2 +- src/main/java/baritone/utils/ExampleBaritoneControl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;