From: Jonathan Neuschäfer Date: Sat, 11 Feb 2012 02:16:44 +0000 (+0100) Subject: server: /give: show the actual stackstring X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=806f10524f6a2cdcc1f15e12b9991ad726876d27;p=zefram%2Fminetest%2Fminetest_engine.git server: /give: show the actual stackstring --- diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index f11b6110..76c07d82 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.');