We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af247c commit 5085004Copy full SHA for 5085004
src/main/java/com/redcrafter07/ultrautilities/tileentity/CraftingStationTile.java
@@ -99,9 +99,14 @@ public void craft() {
99
recipe.ifPresent(iRecipe -> {
100
ItemStack output = iRecipe.getRecipeOutput();
101
102
- itemHandler.extractItem(0, 1, false);
103
- itemHandler.extractItem(1, 1, false);
104
- itemHandler.insertItem(2, output, false);
+// System.out.println(itemHandler.getStackInSlot(2).getCount());
+
+ if(itemHandler.getStackInSlot(2).getCount() < 1) {
105
+ itemHandler.extractItem(0, 1, false);
106
+ itemHandler.extractItem(1, 1, false);
107
+ itemHandler.insertItem(2, output, false);
108
+ }
109
110
111
markDirty();
112
});
0 commit comments