forked from minetest-mods/unified_inventory
Give a stack's maximum, not 99
This commit is contained in:
parent
ee93afd439
commit
3db5f629f2
@ -133,7 +133,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if unified_inventory.is_creative(player_name) then
|
||||
local inv = player:get_inventory()
|
||||
local stack = ItemStack(clicked_item)
|
||||
stack:set_count(99)
|
||||
stack:set_count(stack:get_stack_max())
|
||||
if inv:room_for_item("main", stack) then
|
||||
inv:add_item("main", stack)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user