mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03:43 +01:00
Make the mod be compatible on older clients (<= 0.4.14)
This commit is contained in:
parent
d35f525c4f
commit
298397e7dd
2
init.lua
2
init.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user