mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Fix #429 Filled capsules are placed in armor slot when inventory is full
This commit is contained in:
1 parent
e00d96ff08
commit
8cbb94aed0
1 file changed
+1
-1
@@ -80,7 +80,7 @@ public class ItemLiquidContainer extends Item {
|
||||
|
||||
private int getMatchingSlot(EntityPlayer player, ItemStack stack) {
|
||||
|
||||
for (int slot = 0; slot < player.inventory.getSizeInventory(); slot++) {
|
||||
for (int slot = 0; slot < player.inventory.mainInventory.length; slot++) {
|
||||
ItemStack slotStack = player.inventory.getStackInSlot(slot);
|
||||
|
||||
if (slotStack == null)
|
||||
|
||||
Reference in new issue
Block a user