Ignore request to craft half a result in InvPanel

This commit is contained in:
HenryLoenwind committed 2015-11-07 00:02:02 +01:00
1 parent 5210764001
commit b3fa9d61c3
1 file changed
+10
@@ -102,6 +102,16 @@ public class InventoryPanelContainer extends AbstractMachineContainer<TileInvent
}
}
}
@Override
public ItemStack decrStackSize(int p_75209_1_) {
if (this.getHasStack()) {
// on a right click we are asked to craft half a result. Ignore that.
return super.decrStackSize(this.getStack().stackSize);
}
return super.decrStackSize(p_75209_1_);
}
});
firstSlotCraftingGrid = inventorySlots.size();