summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2016-01-12 14:59:33 -0600
committercheapie <no-email-for-you@example.com>2016-01-12 14:59:33 -0600
commitadfc0b85887a642455f445a0934fee59efe6a41d (patch)
tree2ff4d1697b839897ea8a2d59e7a72a9fd1e2f6c1
parentcd2c2a536650eaa6dc8d28f259c05e017f6731ad (diff)
downloadroads-adfc0b85887a642455f445a0934fee59efe6a41d.tar
roads-adfc0b85887a642455f445a0934fee59efe6a41d.tar.gz
roads-adfc0b85887a642455f445a0934fee59efe6a41d.tar.bz2
roads-adfc0b85887a642455f445a0934fee59efe6a41d.tar.xz
roads-adfc0b85887a642455f445a0934fee59efe6a41d.zip
Add moreblocks dependency checking stuff
-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