mirror of
https://github.com/minetest-mods/enchanting.git
synced 2024-11-15 23:20:20 +01:00
Backport changes from xdecor
This commit is contained in:
parent
5d4070e54a
commit
13ea31ce12
5
init.lua
5
init.lua
|
@ -41,7 +41,10 @@ function enchanting:get_tooltip(enchant, orig_caps, fleshy)
|
|||
strong = {"#ff3d3d", ""},
|
||||
speed = {"#fd5eff", ""}
|
||||
}
|
||||
return minetest.colorize(specs[enchant][1], "\n"..cap(enchant)..specs[enchant][2])
|
||||
return minetest.colorize and
|
||||
minetest.colorize(specs[enchant][1],
|
||||
"\n"..cap(enchant)..specs[enchant][2]) or
|
||||
"\n"..cap(enchant)..specs[enchant][2]
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user