From adfc0b85887a642455f445a0934fee59efe6a41d Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 12 Jan 2016 14:59:33 -0600 Subject: Add moreblocks dependency checking stuff --- labels/depends.txt | 3 ++- labels/init.lua | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'labels') diff --git a/labels/depends.txt b/labels/depends.txt index f17a377..365a8df 100644 --- a/labels/depends.txt +++ b/labels/depends.txt @@ -1,3 +1,4 @@ default streetsmod -wool? \ No newline at end of file +wool? +moreblocks? diff --git a/labels/init.lua b/labels/init.lua index 9840fcd..4c4ed70 100644 --- a/labels/init.lua +++ b/labels/init.lua @@ -52,12 +52,13 @@ streets.register_label = function(friendlyname,name,tex,craft) output = "streets:mark_"..name.." 6", recipe = craft }) - - stairsplus:register_all("streets", name, "streets:mark_"..name.."_on_asphalt", { - description = "Asphalt with Marking: "..friendlyname, - tiles = {"streets_asphalt.png^"..tex,"streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^"..tex.."^[transformR180","streets_asphalt.png^"..tex}, - groups = {cracky=3} - }) + if minetest.get_modpath("moreblocks") then + stairsplus:register_all("streets", name, "streets:mark_"..name.."_on_asphalt", { + description = "Asphalt with Marking: "..friendlyname, + tiles = {"streets_asphalt.png^"..tex,"streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^"..tex.."^[transformR180","streets_asphalt.png^"..tex}, + groups = {cracky=3} + }) + end end -- cgit v1.2.3