Skip to content

Commit

Permalink
Fixes #136 (Smart factory incorrect calculations)
Browse files Browse the repository at this point in the history
  • Loading branch information
NCBPFluffyBear committed Jan 3, 2024
1 parent 48c5643 commit 43cb593
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,13 @@ private ItemStack[] collectRawRecipe(SlimefunItem key) {
private Pair<HashMap<Material, Integer>, HashMap<SlimefunItem, Integer>> reduceRecipe(SlimefunItem key) {
HashMap<Material, Integer> rawVanilla = new HashMap<>();
HashMap<SlimefunItem, Integer> rawSlimefun = new HashMap<>();
for (ItemStack item : key.getRecipe()) {

ItemStack[] recipe = key.getRecipe();
if (key == SlimefunItems.COPPER_WIRE.getItem()) {
recipe = new SlimefunItemStack[] {SlimefunItems.COPPER_DUST};
}

for (ItemStack item : recipe) {
if (item == null) {
continue;
}
Expand Down

0 comments on commit 43cb593

Please sign in to comment.