Fix arcane crafting terminal voiding bug (#148)

This commit is contained in:
Armisael5 authored and GitHub committed 2026-10-24 03:16:38 -04:00
1 parent 83c405d0be
commit 64f248d867
1 file changed
+3 -2
@@ -400,8 +400,9 @@ public class ContainerPartArcaneCraftingTerminal extends ContainerMEMonitorable
simStack.stackSize *= maxTimesToCraft;
ItemStack simResult = adaptor.simulateAdd(simStack);
if (simResult != null) {
maxTimesToCraft = (int) Math
.floor((double) simResult.stackSize / (double) this.resultSlot.getStack().stackSize);
maxTimesToCraft = (int) Math.floor(
(double) (simStack.stackSize - simResult.stackSize)
/ (double) this.resultSlot.getStack().stackSize);
}
return maxTimesToCraft;