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

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