Fix an ObjectHolderRef internal error message (#5214)

This commit is contained in:
MrRiegel authored and tterrag committed 2019-04-12 10:49:26 -04:00
1 parent 67da3182c1
commit d20b1f271e
1 file changed
+1 -1
@@ -92,7 +92,7 @@ public class ObjectHolderRef implements Consumer<Predicate<ResourceLocation>>
if (this.injectedObject == null || !isValid())
{
throw new IllegalStateException(String.format("The ObjectHolder annotation cannot apply to a field that does not map to a registry. Ensure the registry was created during the RegistryEvent.NewRegistry event. (found : %s at %s.%s)", field.getType().getName(), field.getClass().getName(), field.getName()));
throw new IllegalStateException(String.format("The ObjectHolder annotation cannot apply to a field that does not map to a registry. Ensure the registry was created during the RegistryEvent.NewRegistry event. (found : %s at %s.%s)", field.getType().getName(), field.getDeclaringClass().getName(), field.getName()));
}
field.setAccessible(true);