aboutsummaryrefslogtreecommitdiff
path: root/util/updatepo.sh
diff options
context:
space:
mode:
authorJesse McDonald <nybble41@gmail.com>2017-05-18 22:56:49 -0500
committerparamat <mat.gregory@virginmedia.com>2017-06-21 01:53:57 +0100
commite6a9e6066afc369f01c046de8e3a90a4b042286c (patch)
treef5eb25befff519e77a9323ed65e5bb3803e03e78 /util/updatepo.sh
parent16938adfc00b3c56a7b08a9eb97160b68902bae6 (diff)
downloadminetest-e6a9e6066afc369f01c046de8e3a90a4b042286c.tar.gz
minetest-e6a9e6066afc369f01c046de8e3a90a4b042286c.tar.bz2
minetest-e6a9e6066afc369f01c046de8e3a90a4b042286c.zip
Inventory: Make addItem for empty ItemStacks respect max stack size
When adding items to an empty ItemStack, limit the number of items taken based on the maximum stack size in the item description. Likewise, when checking whether items will fit into an empty ItemStack, only absorb as many items as are allowed in a single stack and return the rest.
Diffstat (limited to 'util/updatepo.sh')
0 files changed, 0 insertions, 0 deletions