diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-11-28 01:19:08 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-11-28 01:20:21 -0500 |
commit | 3db5f629f2e2d524971b7d3d6da9a75c3f853194 (patch) | |
tree | de6abc761ddb55e20d83f6cbd61b22ef915f02de /callbacks.lua | |
parent | ee93afd439ec9beaede5be916a55a17c61577684 (diff) |
Give a stack's maximum, not 99
Diffstat (limited to 'callbacks.lua')
-rw-r--r-- | callbacks.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/callbacks.lua b/callbacks.lua index 4f9913c..53601b0 100644 --- a/callbacks.lua +++ b/callbacks.lua @@ -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 |