From 571ecafdbc046f647c0836e7eb3efe67b321a345 Mon Sep 17 00:00:00 2001 From: tterrag Date: Sat, 21 Sep 2019 16:19:23 -0400 Subject: [PATCH] Fix type bound on GameRegistry.findRegistry being too narrow --- .../net/minecraftforge/fml/common/registry/GameRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/fml/common/registry/GameRegistry.java b/src/main/java/net/minecraftforge/fml/common/registry/GameRegistry.java index 813d7b7b2..02f39e7ef 100644 --- a/src/main/java/net/minecraftforge/fml/common/registry/GameRegistry.java +++ b/src/main/java/net/minecraftforge/fml/common/registry/GameRegistry.java @@ -20,7 +20,7 @@ package net.minecraftforge.fml.common.registry; import net.minecraftforge.registries.IForgeRegistry; -import net.minecraftforge.registries.ForgeRegistryEntry; +import net.minecraftforge.registries.IForgeRegistryEntry; import net.minecraftforge.registries.RegistryManager; @@ -34,7 +34,7 @@ public class GameRegistry * @param registryType The base class of items in this registry. * @return The registry, Null if none is registered. */ - public static > IForgeRegistry findRegistry(Class registryType) + public static > IForgeRegistry findRegistry(Class registryType) { return RegistryManager.ACTIVE.getRegistry(registryType); }