From e162b13b94808d5ae00034f1e4c68f8030382437 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 3 Jul 2016 23:46:57 +0200 Subject: [PATCH] Fix mod not working without paint roller mod --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index c39f31a..c28c204 100644 --- a/init.lua +++ b/init.lua @@ -154,5 +154,7 @@ for i=1,#complementary do tiled block so that it becomes a 2-color block. Thus, we use minor hack by using a fake dye group called “none” to make sure there is no dye to turn a tiled block into a 2-color tiled block. ]] - paint_roller.register_one(nodeid, "none", "tiled color cubes" ) + if(minetest.get_modpath("paint_roller") ~= nil) then + paint_roller.register_one(nodeid, "none", "tiled color cubes" ) + end end -- 2.11.4.GIT