Fixed compile error in registry code with Eclipse.

This commit is contained in:
LexManos 2016-04-02 12:01:40 -07:00
parent 404995122a
commit 8058c675ab
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{