give_initial_stuff: Respect items' stack_max
This commit is contained in:
parent
3db5696889
commit
2268485cdf
2 changed files with 12 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue