summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--callbacks.lua2
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