0
0
Fork 0

[mcl_craftguide] fix warnings

This commit is contained in:
AFCMS 2021-05-23 13:46:08 +02:00
parent ce9258b764
commit c19c05443e
1 changed files with 7 additions and 7 deletions

View File

@ -417,9 +417,9 @@ local function get_tooltip(item, groups, cooktime, burntime)
-- and just print the normal item name without special formatting
if groups[1] == "compass" or groups[1] == "clock" then
groupstr = reg_items[item].description
elseif group_names[groups[1]] then
elseif g then
-- Use the special group name string
groupstr = minetest.colorize(gcol, group_names[groups[1]])
groupstr = minetest.colorize(gcol, g)
else
--[[ Fallback: Generic group explanation: This always
works, but the internally used group name (which