Merge pull request #2971 from HenryLoenwind/craftNoHalves

Ignore request to craft half a result in InvPanel
This commit is contained in:
tterrag committed 2015-11-06 22:08:07 -05:00
commit 3db76f837d
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();