summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 03:19:58 +0100
committerJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 03:19:58 +0100
commit298397e7dd3d1a3f142a1d64949a5786af03e720 (patch)
tree3991f0c7b8bd6bec96f3a51a3aeb83b727d7d6f3 /init.lua
parentd35f525c4fe27ac530587d1f63e00170add6271e (diff)
Make the mod be compatible on older clients (<= 0.4.14)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index dc9e219..30e9d85 100644
--- a/init.lua
+++ b/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)