From a2f50e69754339a45187f843cfcb596a1922d1d0 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 21 Jan 2023 08:28:59 +0000 Subject: [PATCH] fix multiple output description bug (thx Bastrabun) --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index d38848f..6019719 100644 --- a/init.lua +++ b/init.lua @@ -574,7 +574,8 @@ minetest.register_node("wine:wine_barrel", { meta:set_string("infotext", txt) meta:set_float("status", status + 5) - local desc = minetest.registered_items[recipe[2]].description or "" + local d1 = recipe[2]:split(" ")[1] + local desc = minetest.registered_items[d1].description or "" txt = S("Brewing: @1", desc) .. " " .. S("(@1% Done)", status)