From d047b1cff81d96e35bff8132cb466ce02e460708 Mon Sep 17 00:00:00 2001 From: Voidsong Dragonfly Date: Thu, 20 Jun 2024 20:09:16 -0400 Subject: [PATCH] Make nuggets display properly --- .../common/crafting/ArcRecyclingRecipe.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/blusunrize/immersiveengineering/common/crafting/ArcRecyclingRecipe.java b/src/main/java/blusunrize/immersiveengineering/common/crafting/ArcRecyclingRecipe.java index 5f24c5dcde..c68664ba20 100644 --- a/src/main/java/blusunrize/immersiveengineering/common/crafting/ArcRecyclingRecipe.java +++ b/src/main/java/blusunrize/immersiveengineering/common/crafting/ArcRecyclingRecipe.java @@ -22,7 +22,6 @@ import net.minecraft.world.item.ItemStack; import net.neoforged.neoforge.items.ItemHandlerHelper; -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.List; import java.util.function.Supplier; @@ -53,8 +52,10 @@ public ArcRecyclingRecipe(Supplier tags, List=1) ret.add(new TagOutput(e.getFirst().get().copyWithCount((int)(e.getSecond().doubleValue())))); String[] type = TagUtils.getMatchingPrefixAndRemaining(tags.get(), e.getFirst().get(), "ingots"); - if(type!=null&&e.getSecond()%1>0.11) - ret.add(new TagOutput(TagUtils.createItemWrapper(IETags.getNugget(type[1])), (int)(9*e.getSecond()%1))); + if(type!=null&&((e.getSecond()%1)>0.11)) + { + ret.add(new TagOutput(TagUtils.createItemWrapper(IETags.getNugget(type[1])), (int)(9*(e.getSecond()%1)))); + } } return new TagOutputList(ret); });