aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/mods/default/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index f11b61100..76c07d825 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -1778,6 +1778,9 @@ local function handle_give_command(cmd, giver, receiver, stackstring)
else
partiality = "partially "
end
+ -- The actual item stack string may be different from what the "giver"
+ -- entered (e.g. big numbers are always interpreted as 2^16-1).
+ stackstring = itemstack:to_string()
if giver == receiver then
minetest.chat_send_player(giver, '"'..stackstring
..'" '..partiality..'added to inventory.');