mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Merge pull request #2971 from HenryLoenwind/craftNoHalves
Ignore request to craft half a result in InvPanel
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user