Rename POTIONS to MOB_EFFECTS for newer forge versions

This commit is contained in:
Marcel Konrad
2021-09-10 17:09:25 +02:00
parent f9de298b65
commit 700803a286
5 changed files with 22 additions and 32 deletions

View File

@@ -33,7 +33,7 @@ public class RegistryHelper
{
registerRegistry(ForgeRegistries.BLOCKS, Block::getDescriptionId);
registerRegistry(ForgeRegistries.ITEMS, Item::getDescriptionId);
registerRegistry(ForgeRegistries.POTIONS, MobEffect::getDescriptionId);
registerRegistry(ForgeRegistries.MOB_EFFECTS, MobEffect::getDescriptionId);
registerRegistry(ForgeRegistries.BIOMES, biome ->
{
Registry<Biome> registry = RegistryAccess.builtin().registryOrThrow(Registry.BIOME_REGISTRY);