mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Server starts
This commit is contained in:
1 parent
330db1a54d
commit
b50b768852
44 files changed
+449
-475
No files matched your search
@@ -66,7 +66,7 @@ class ObjectHolderRef
|
||||
}
|
||||
else
|
||||
{
|
||||
this.injectedObject = ((IForgeRegistryEntry)existing).getRegistryName();
|
||||
this.injectedObject = ((ForgeRegistryEntry)existing).getRegistryName();
|
||||
}
|
||||
}
|
||||
catch (IllegalAccessException e)
|
||||
@@ -105,9 +105,9 @@ class ObjectHolderRef
|
||||
{
|
||||
Class<?> type = typesToExamine.remove();
|
||||
Collections.addAll(typesToExamine, type.getInterfaces());
|
||||
if (IForgeRegistryEntry.class.isAssignableFrom(type))
|
||||
if (ForgeRegistryEntry.class.isAssignableFrom(type))
|
||||
{
|
||||
registry = (ForgeRegistry<?>)RegistryManager.ACTIVE.getRegistry((Class<IForgeRegistryEntry>)type);
|
||||
registry = (ForgeRegistry<?>)RegistryManager.ACTIVE.getRegistry((Class<ForgeRegistryEntry>)type);
|
||||
final Class<?> parentType = type.getSuperclass();
|
||||
if (parentType != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user