mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-04-21 16:29:03 +00:00
Fix merge
This commit is contained in:
@ -72,7 +72,7 @@ public class CraftRegistry<B extends Keyed, M> implements Registry<B> {
|
||||
return getMinecraftRegistry().registryOrThrow(key);
|
||||
}
|
||||
|
||||
public static <B extends Keyed> Registry<?> createRegistry(Class<B> bukkitClass, IRegistryCustom registryHolder) {
|
||||
public static <B extends Keyed> Registry<?> createRegistry(Class<? super B> bukkitClass, IRegistryCustom registryHolder) {
|
||||
if (bukkitClass == GameEvent.class) {
|
||||
return new CraftRegistry<>(registryHolder.registryOrThrow(Registries.GAME_EVENT), CraftGameEvent::new);
|
||||
}
|
||||
|
Reference in New Issue
Block a user