Fix RegistryManager#getRegistry not working for generic registry entries

This commit is contained in:
tterrag committed 2019-02-14 18:50:15 -05:00
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));
}