mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 10:17:29 +00:00
Fixed ignored config annotation not being applied correctly
This commit is contained in:
1 parent
d794c24d2e
commit
aaba678d37
1 file changed
+1
-1
@@ -174,7 +174,7 @@ public class ParsedConfiguration {
|
||||
cat.setRequiresMcRestart(true);
|
||||
}
|
||||
for (val field : configClass.getDeclaredFields()) {
|
||||
if (field.getAnnotation(Config.Ignore.class) != null && (field.getModifiers() & Modifier.FINAL) != 0) {
|
||||
if (field.getAnnotation(Config.Ignore.class) != null || (field.getModifiers() & Modifier.FINAL) != 0) {
|
||||
continue;
|
||||
}
|
||||
field.setAccessible(true);
|
||||
|
||||
Reference in new issue
Block a user