If we're going to have a getter we might as well use it

This commit is contained in:
Brady 2018-08-27 14:35:30 -05:00
parent 9762fe73cf
commit 8f8bedb1b0
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -326,7 +326,7 @@ public class Settings {
public <T> List<Setting<T>> getAllValuesByType(Class<T> klass) {
List<Setting<T>> result = new ArrayList<>();
for (Setting<?> setting : allSettings) {
if (setting.klass.equals(klass)) {
if (setting.getValueClass().equals(klass)) {
result.add((Setting<T>) setting);
}
}