From 37d2129c3e2b56ed515d9f292a51df41417aa24e Mon Sep 17 00:00:00 2001 From: lijinhong11 <62691956+lijinhong11@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:12:15 +0000 Subject: [PATCH] fix AContainer can't find recipes with similar items --- .../Slimefun/Objects/SlimefunItem/abstractItems/AContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/AContainer.java b/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/AContainer.java index be71fbe598..b90d6f9b2e 100644 --- a/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/AContainer.java +++ b/src/main/java/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/abstractItems/AContainer.java @@ -422,6 +422,8 @@ protected MachineRecipe findNextRecipe(BlockMenu inv) { for (ItemStack input : recipe.getInput()) { for (int slot : getInputSlots()) { if (SlimefunUtils.isItemSimilar(inventory.get(slot), input, true)) { + if (found.containsKey(slot)) continue; //skip scanned slots + found.put(slot, input.getAmount()); break; }