give_initial_stuff: Respect items' stack_max

This commit is contained in:
ANAND 2020-05-07 14:27:37 +05:30 committed by ANAND
parent 3db5696889
commit 2268485cdf
2 changed files with 12 additions and 2 deletions

View file

@ -54,7 +54,7 @@ ctf_classes.register_on_changed(function(player, old, new)
local items = new.properties.initial_stuff
for i = 1, #items do
inv:add_item("main", ItemStack(items[i]))
give_initial_stuff.give_item(inv, ItemStack(items[i]))
end
end
end)