From 806f10524f6a2cdcc1f15e12b9991ad726876d27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 11 Feb 2012 03:16:44 +0100 Subject: [PATCH] server: /give: show the actual stackstring --- data/mods/default/init.lua | 3 +++ 1 file changed, 3 insertions(+) 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.'); -- 2.30.2