mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-28 16:06:03 +00:00
fix(autocraft): stop when crafted output cannot be taken
craft() reported success from the result slot having a stack, even when a full inventory blocked the shift-click pickup. That made the auto-craft loop treat it as progress and never terminate. Check the result slot after the click: if the output is still there it wasn't taken, so break.
This commit is contained in:
1 file changed
+6
@@ -123,6 +123,12 @@ public class DefaultOverlayHandler implements IOverlayHandler {
|
||||
|
||||
if (craftingSlot.getHasStack() && craftingSlot.canTakeStack(firstGui.mc.thePlayer)) {
|
||||
FastTransferManager.clickSlot(firstGui, craftingSlot.slotNumber, 0, 1);
|
||||
|
||||
// Output still present means it wasn't taken (e.g. inventory full); stop.
|
||||
if (craftingSlot.getHasStack()) {
|
||||
break;
|
||||
}
|
||||
|
||||
craft = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user