Give a stack's maximum, not 99

This commit is contained in:
ShadowNinja 2013-11-28 01:19:08 -05:00
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