Fix an ObjectHolderRef internal error message (#5214)
This commit is contained in:
parent
67da3182c1
commit
d20b1f271e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue