From 8f8bedb1b05033579cd93d2ac783f58bca917e51 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 27 Aug 2018 14:35:30 -0500 Subject: [PATCH] If we're going to have a getter we might as well use it --- src/main/java/baritone/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/Settings.java b/src/main/java/baritone/Settings.java index 6a30099c..099493e2 100644 --- a/src/main/java/baritone/Settings.java +++ b/src/main/java/baritone/Settings.java @@ -326,7 +326,7 @@ public class Settings { public List> getAllValuesByType(Class klass) { List> result = new ArrayList<>(); for (Setting setting : allSettings) { - if (setting.klass.equals(klass)) { + if (setting.getValueClass().equals(klass)) { result.add((Setting) setting); } }