mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Fix RegistryManager#getRegistry not working for generic registry entries
This commit is contained in:
1 parent
9d56309a05
commit
2ec74e5c22
2 files changed
+3
-5
No files matched your search
@@ -73,7 +73,7 @@ public class RegistryManager
|
||||
return (ForgeRegistry<V>)this.registries.get(key);
|
||||
}
|
||||
|
||||
public <V extends IForgeRegistryEntry<V>> IForgeRegistry<V> getRegistry(Class<V> cls)
|
||||
public <V extends IForgeRegistryEntry<V>> IForgeRegistry<V> getRegistry(Class<? super V> cls)
|
||||
{
|
||||
return getRegistry(superTypes.get(cls));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user