mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
1.21 Update
Co-authored-by: RealMangoRage <[email protected]> Co-authored-by: Daniel Norris <[email protected]> Co-authored-by: Ven <[email protected]>
This commit is contained in:
941 files changed
+3119
-4266
No files matched your search
@@ -148,7 +148,7 @@ public class ObjectHolderRegistry
|
||||
}
|
||||
if (isClass)
|
||||
{
|
||||
scanClassForFields(classModIds, type, new ResourceLocation(registryName), registryClass, value, clazz, extractFromValue);
|
||||
scanClassForFields(classModIds, type, ResourceLocation.parse(registryName), registryClass, value, clazz, extractFromValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -165,7 +165,7 @@ public class ObjectHolderRegistry
|
||||
try
|
||||
{
|
||||
Field f = clazz.getDeclaredField(annotationTarget);
|
||||
ObjectHolderRef ref = ObjectHolderRef.create(new ResourceLocation(registryName), f, value, extractFromValue);
|
||||
ObjectHolderRef ref = ObjectHolderRef.create(ResourceLocation.parse(registryName), f, value, extractFromValue);
|
||||
if (ref != null)
|
||||
addHandler(ref);
|
||||
}
|
||||
@@ -196,7 +196,7 @@ public class ObjectHolderRegistry
|
||||
Type targetClass, Object declaration)
|
||||
{
|
||||
if (registryName != null)
|
||||
return new ResourceLocation(registryName);
|
||||
return ResourceLocation.parse(registryName);
|
||||
|
||||
if (classRegistryNames.containsKey(targetClass))
|
||||
return classRegistryNames.get(targetClass);
|
||||
|
||||
Reference in new issue
Block a user