Fixed units without an inventory being able to withdraw items

This commit is contained in:
Anuken
2018-06-25 19:37:04 -04:00
parent f464868934
commit b911ef98bb
2 changed files with 1 additions and 2 deletions

View File

@@ -112,7 +112,6 @@ public class BlockInventoryFragment implements Fragment {
if(!canPick.get() || items[f] == 0) return;
int amount = Math.min(Inputs.keyDown("item_withdraw") ? items[f] : 1, player.inventory.itemCapacityUsed(item));
CallBlocks.requestItem(player, tile, item, amount);
});
table.add(image);