From 4108e8487d6a7ec206b0d46094eca98287b60e2f Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:45:36 -0700 Subject: [PATCH] get safe short description when reporting about tool on anvil --- modules/anvil/anvil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/anvil/anvil.lua b/modules/anvil/anvil.lua index b1ccb08..67291a4 100644 --- a/modules/anvil/anvil.lua +++ b/modules/anvil/anvil.lua @@ -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