From bb3d8036bbed702a731126656a868f751d31a2e2 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Wed, 2 Mar 2022 12:47:04 +0800 Subject: Support Forge 1.18.2 --- .../rei/plugin/client/forge/DefaultClientPluginImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forge/src') diff --git a/forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java b/forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java index 3c7d805d4..6d69f9068 100644 --- a/forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java +++ b/forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java @@ -57,9 +57,9 @@ public class DefaultClientPluginImpl { Set potions = Sets.newLinkedHashSet(); for (Ingredient container : PotionBrewing.ALLOWED_CONTAINERS) { for (PotionBrewing.Mix mix : PotionBrewing.POTION_MIXES) { - IRegistryDelegate from = mix.from; + IRegistryDelegate from = mix.f_43532_; Ingredient ingredient = mix.ingredient; - IRegistryDelegate to = mix.to; + IRegistryDelegate to = mix.f_43534_; Ingredient base = Ingredient.of(Arrays.stream(container.getItems()) .map(ItemStack::copy) .map(stack -> PotionUtils.setPotion(stack, from.get()))); @@ -74,9 +74,9 @@ public class DefaultClientPluginImpl { } for (Potion potion : potions) { for (PotionBrewing.Mix mix : PotionBrewing.CONTAINER_MIXES) { - IRegistryDelegate from = mix.from; + IRegistryDelegate from = mix.f_43532_; Ingredient ingredient = mix.ingredient; - IRegistryDelegate to = mix.to; + IRegistryDelegate to = mix.f_43534_; Ingredient base = Ingredient.of(PotionUtils.setPotion(new ItemStack(from.get()), potion)); ItemStack output = PotionUtils.setPotion(new ItemStack(to.get()), potion); clientPlugin.registerBrewingRecipe(base, ingredient, output); -- cgit