Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 3e37736

Browse files
authored
* fix script * fix machine * Update CustomNoEnergyMachine.java * Update JavaScriptEval.java * Update CustomWorkbench.java
1 parent 98e7efb commit 3e37736

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/lins/mmmjjkx/rykenslimefuncustomizer/objects/customs/machine/CustomWorkbench.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,10 @@ public CustomLinkedMachineRecipe findNextLinkedRecipe(BlockMenu blockMenu) {
294294

295295

296296
for (int slot : inputMap.keySet()) {
297-
blockMenu.consumeItem(slot, inputMap.get(slot).getAmount());
297+
ItemStack itemStack = blockMenu.getItemInSlot(slot);
298+
if (itemStack != null && itemStack.getType() == Material.AIR) {
299+
blockMenu.consumeItem(slot, inputMap.get(slot).getAmount());
300+
}
298301
}
299302
return recipe;
300303
}

0 commit comments

Comments
 (0)