summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--labels/depends.txt3
-rw-r--r--labels/init.lua13
2 files changed, 9 insertions, 7 deletions
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