aboutsummaryrefslogtreecommitdiff
path: root/forge/src/main/java/me/shedaniel/rei/plugin
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2023-05-29 23:17:20 +0800
committershedaniel <daniel@shedaniel.me>2023-05-29 23:17:20 +0800
commit1e869aeac83d1627a6cae32a3b53b7d17bd3d7b8 (patch)
tree9ff780b6f52c8a6c216698242e8604568dc1df92 /forge/src/main/java/me/shedaniel/rei/plugin
parent48ed02b1ed057d2b7502cca575f640a595959cf5 (diff)
downloadRoughlyEnoughItems-feature/6.7.tar.gz
RoughlyEnoughItems-feature/6.7.tar.bz2
RoughlyEnoughItems-feature/6.7.zip
Fix compile errorsfeature/6.7
Diffstat (limited to 'forge/src/main/java/me/shedaniel/rei/plugin')
-rw-r--r--forge/src/main/java/me/shedaniel/rei/plugin/client/forge/DefaultClientPluginImpl.java9
1 files changed, 4 insertions, 5 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 2ee143b91..5d36a1f7f 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
@@ -27,7 +27,6 @@ import com.google.common.collect.Sets;
import me.shedaniel.rei.api.client.registry.display.DisplayRegistry;
import me.shedaniel.rei.plugin.client.BuiltinClientPlugin;
import me.shedaniel.rei.plugin.client.DefaultClientPlugin;
-import net.minecraft.core.Holder;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.alchemy.Potion;
@@ -60,9 +59,9 @@ public class DefaultClientPluginImpl extends DefaultClientPlugin {
Set<Potion> potions = Sets.newLinkedHashSet();
for (Ingredient container : PotionBrewing.ALLOWED_CONTAINERS) {
for (PotionBrewing.Mix<Potion> mix : PotionBrewing.POTION_MIXES) {
- IRegistryDelegate<Potion> from = mix.field_185198_a;
+ IRegistryDelegate<Potion> from = mix.from;
Ingredient ingredient = mix.ingredient;
- IRegistryDelegate<Potion> to = mix.field_185200_c;
+ IRegistryDelegate<Potion> to = mix.to;
Ingredient base = Ingredient.of(Arrays.stream(container.getItems())
.map(ItemStack::copy)
.map(stack -> PotionUtils.setPotion(stack, from.get())));
@@ -77,9 +76,9 @@ public class DefaultClientPluginImpl extends DefaultClientPlugin {
}
for (Potion potion : potions) {
for (PotionBrewing.Mix<Item> mix : PotionBrewing.CONTAINER_MIXES) {
- IRegistryDelegate<Item> from = mix.field_185198_a;
+ IRegistryDelegate<Item> from = mix.from;
Ingredient ingredient = mix.ingredient;
- IRegistryDelegate<Item> to = mix.field_185200_c;
+ IRegistryDelegate<Item> 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);