Make the mod be compatible on older clients (<= 0.4.14)

This commit is contained in:
JPG 2016-12-16 03:19:58 +01:00
parent d35f525c4f
commit 298397e7dd
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ local function extract_groups(str)
end
local function colorize(str)
return minetest.colorize("#FFFF00", str)
return minetest.colorize and minetest.colorize("#FFFF00", str) or str
end
function craftguide:get_tooltip(item, recipe_type, cooktime, groups)