fix multiple output description bug (thx Bastrabun)
This commit is contained in:
parent
0dd37f9bef
commit
a2f50e6975
3
init.lua
3
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user