1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-24 21:40:30 +02:00

server: /give: show the actual stackstring

This commit is contained in:
Jonathan Neuschäfer 2012-02-11 03:16:44 +01:00
parent 50110e00e8
commit 806f10524f

View File

@ -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.');