Backport changes from xdecor

This commit is contained in:
JPG 2016-12-16 12:59:31 +01:00
parent 5d4070e54a
commit 13ea31ce12

View File

@ -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