mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Fix arcane crafting terminal voiding bug (#148)
This commit is contained in:
1 parent
83c405d0be
commit
64f248d867
1 file changed
+3
-2
+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;
|
||||
|
||||
Reference in new issue
Block a user