forked from SteamWar/SteamWar
Fix AbstractLinker not accessing private fields
This commit is contained in:
@@ -102,6 +102,7 @@ public abstract class AbstractLinker<T> {
|
||||
for (Field field : clazz.getFields()) {
|
||||
if (field.getAnnotation(LinkedInstance.class) != null) {
|
||||
try {
|
||||
field.setAccessible(true);
|
||||
if (Modifier.isStatic(field.getModifiers())) {
|
||||
field.set(null, instances.get(field.getType()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user