Rename getByValueType to getAllValuesByType

This commit is contained in:
Brady
2018-08-27 13:39:36 -05:00
parent 3bb1c1a972
commit 3bf4b997b0
2 changed files with 2 additions and 2 deletions

View File

@@ -286,7 +286,7 @@ public class ExampleBaritoneControl extends Behavior {
event.cancel();
return;
}
List<Settings.Setting<Boolean>> toggleable = Baritone.settings().getByValueType(Boolean.class);
List<Settings.Setting<Boolean>> toggleable = Baritone.settings().getAllValuesByType(Boolean.class);
for (Settings.Setting<Boolean> setting : toggleable) {
if (msg.equalsIgnoreCase(setting.getName())) {
setting.value ^= true;