If we're going to have a getter we might as well use it
This commit is contained in:
parent
9762fe73cf
commit
8f8bedb1b0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user