From 81f07b79c7560c4b0aba0d6dd3c1cac781fad68a Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 14 Oct 2021 17:53:21 +0800 Subject: Remove LBA compatibility, Add Fabric API compatibility Update buildscripts and README Update buildscripts and README --- .../rei/plugin/client/forge/DefaultClientPluginImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forge/src/main/java/me') 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 9ad85f452..7c47d1c84 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 @@ -42,9 +42,9 @@ public class DefaultClientPluginImpl { Set potions = Sets.newLinkedHashSet(); for (Ingredient container : PotionBrewing.ALLOWED_CONTAINERS) { for (PotionBrewing.Mix mix : PotionBrewing.POTION_MIXES) { - IRegistryDelegate from = mix.f_43532_; + IRegistryDelegate from = mix.from; Ingredient ingredient = mix.ingredient; - IRegistryDelegate to = mix.f_43534_; + IRegistryDelegate to = mix.to; Ingredient base = Ingredient.of(Arrays.stream(container.getItems()) .map(ItemStack::copy) .map(stack -> PotionUtils.setPotion(stack, from.get()))); @@ -59,9 +59,9 @@ public class DefaultClientPluginImpl { } for (Potion potion : potions) { for (PotionBrewing.Mix mix : PotionBrewing.CONTAINER_MIXES) { - IRegistryDelegate from = mix.f_43532_; + IRegistryDelegate from = mix.from; Ingredient ingredient = mix.ingredient; - IRegistryDelegate to = mix.f_43534_; + IRegistryDelegate to = mix.to; 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