get safe short description when reporting about tool on anvil

This commit is contained in:
flux 2023-06-23 10:45:36 -07:00
parent f1fc13e4ef
commit 4108e8487d
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ function anvil.use_anvil(pos, puncher)
meta:set_int("informed", 1)
local tool_desc = tool:get_short_description() or tool:get_description()
local tool_desc = get_safe_short_description(tool)
minetest.chat_send_player(puncher_name, S("Your @1 has been repaired successfully.", tool_desc))
end
end