mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix an ObjectHolderRef internal error message (#5214)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user