Fixed compile error in registry code with Eclipse.
This commit is contained in:
parent
404995122a
commit
8058c675ab
1 changed files with 2 additions and 2 deletions
|
@ -139,10 +139,10 @@ public class PersistentRegistryManager
|
|||
return PersistentRegistry.ACTIVE.createRegistry(registryName, registryType, optionalDefaultKey, minId, maxId, addCallback, clearCallback, createCallback);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
static <V extends IForgeRegistryEntry<V>> IForgeRegistry<V> findRegistry(IForgeRegistryEntry<?> entry)
|
||||
{
|
||||
final Class<V> registryType = (Class<V>)entry.getRegistryType();
|
||||
final Class<V> registryType = (Class<V>)(Class)entry.getRegistryType();
|
||||
final FMLControlledNamespacedRegistry<V> registry = PersistentRegistry.ACTIVE.getRegistry(registryType);
|
||||
if (registry == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue