aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-11 03:16:44 +0100
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-24 23:27:01 +0100
commit806f10524f6a2cdcc1f15e12b9991ad726876d27 (patch)
tree9b389688620e627cc4e975bd992898bb024e1f96
parent50110e00e88e9fcc2379faf465b105003c3b616b (diff)
downloadminetest-806f10524f6a2cdcc1f15e12b9991ad726876d27.tar.gz
minetest-806f10524f6a2cdcc1f15e12b9991ad726876d27.tar.bz2
minetest-806f10524f6a2cdcc1f15e12b9991ad726876d27.zip
server: /give: show the actual stackstring
-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.');