diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-03-02 12:47:04 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-03-02 12:47:04 +0800 |
| commit | bb3d8036bbed702a731126656a868f751d31a2e2 (patch) | |
| tree | 6d1e1537120d49b73a09dfaf9e3e8a4f895f9f11 /forge/src | |
| parent | b56dda8401fad7db78bb1366a6d7e70ba6dde1b1 (diff) | |
| download | RoughlyEnoughItems-bb3d8036bbed702a731126656a868f751d31a2e2.tar.gz RoughlyEnoughItems-bb3d8036bbed702a731126656a868f751d31a2e2.tar.bz2 RoughlyEnoughItems-bb3d8036bbed702a731126656a868f751d31a2e2.zip | |
Support Forge 1.18.2
Diffstat (limited to 'forge/src')
| -rw-r--r-- | forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
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<Potion> potions = Sets.newLinkedHashSet(); for (Ingredient container : PotionBrewing.ALLOWED_CONTAINERS) { for (PotionBrewing.Mix<Potion> mix : PotionBrewing.POTION_MIXES) { - IRegistryDelegate<Potion> from = mix.from; + IRegistryDelegate<Potion> from = mix.f_43532_; Ingredient ingredient = mix.ingredient; - IRegistryDelegate<Potion> to = mix.to; + IRegistryDelegate<Potion> 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<Item> mix : PotionBrewing.CONTAINER_MIXES) { - IRegistryDelegate<Item> from = mix.from; + IRegistryDelegate<Item> from = mix.f_43532_; Ingredient ingredient = mix.ingredient; - IRegistryDelegate<Item> to = mix.to; + IRegistryDelegate<Item> 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); |
