Make sidedproxy support non-public fields. Closes #344

This commit is contained in:
Christian committed 2014-01-20 07:55:26 -05:00
1 parent 6a695c4348
commit 35a38d7840
1 file changed
+1
@@ -47,6 +47,7 @@ public class ProxyInjector
FMLLog.severe("Attempted to load a proxy type into %s.%s but the field was not found", targ.getClassName(), targ.getObjectName());
throw new LoaderException();
}
target.setAccessible(true);
SidedProxy annotation = target.getAnnotation(SidedProxy.class);
if (!Strings.isNullOrEmpty(annotation.modId()) && !annotation.modId().equals(mod.getModId()))