Make sidedproxy support non-public fields. Closes #344

This commit is contained in:
Christian 2014-01-20 07:55:26 -05:00
parent ad15c01cd8
commit 188488abc3
1 changed files with 1 additions and 0 deletions

View File

@ -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()))