Skip to content

Commit 2ed3b3f

Browse files
committed
Fix input not consumed if output can not fully fit, Closes #31
1 parent 6f8f01c commit 2ed3b3f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/cyclops/structuredcrafting/craft/WorldCraftingMatrix.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ public boolean craft(boolean simulate) {
143143

144144
// Determine output
145145
if(chosenPossibility != null && !itemStack.isEmpty()
146-
&& addItemStackForOutput(level, targetPos, targetSide, outputProviders, itemStack, simulate)) {
146+
&& addItemStackForOutput(level, targetPos, targetSide, outputProviders, itemStack, true)) {
147+
if (!simulate) {
148+
addItemStackForOutput(level, targetPos, targetSide, outputProviders, itemStack, simulate);
149+
}
147150
chosenPossibility.handleRemainingItems(level, inputSide, simulate);
148151
return true;
149152
}

0 commit comments

Comments
 (0)