mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
server: /give: show the actual stackstring
This commit is contained in:
parent
50110e00e8
commit
806f10524f
1 changed files with 3 additions and 0 deletions
|
@ -1778,6 +1778,9 @@ local function handle_give_command(cmd, giver, receiver, stackstring)
|
||||||
else
|
else
|
||||||
partiality = "partially "
|
partiality = "partially "
|
||||||
end
|
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
|
if giver == receiver then
|
||||||
minetest.chat_send_player(giver, '"'..stackstring
|
minetest.chat_send_player(giver, '"'..stackstring
|
||||||
..'" '..partiality..'added to inventory.');
|
..'" '..partiality..'added to inventory.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue