Skip to content

Commit

Permalink
Make nuggets display properly
Browse files Browse the repository at this point in the history
  • Loading branch information
voidsong-dragonfly committed Jun 21, 2024
1 parent 6ead381 commit d047b1c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -53,8 +52,10 @@ public ArcRecyclingRecipe(Supplier<RegistryAccess> tags, List<Pair<TagOutput, Do
{
if(e.getSecond()>=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);
});
Expand Down

0 comments on commit d047b1c

Please sign in to comment.