summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-08-22 09:56:59 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-08-22 09:56:59 +0100
commit144d36cc6313ca4dd1b82256b7f32a3f7a027c0a (patch)
treeda1e7c4a329d5dbc28633c941ffd50eba18d48d2
parent7c39b7cbfef26ec7bb64190dc1959d292fa1a60c (diff)
Fixed moreblocks' stairsplus checking
-rw-r--r--depends.txt1
-rw-r--r--init.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/depends.txt b/depends.txt
index 8901b48..4abda40 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,3 +1,4 @@
default
stairs
+moreblocks?
lucky_block? \ No newline at end of file
diff --git a/init.lua b/init.lua
index e9f8077..82397a7 100644
--- a/init.lua
+++ b/init.lua
@@ -42,7 +42,7 @@ for _, clay in pairs(clay) do
})
-- register stairsplus stairs if found
- if minetest.global_exists("stairsplus") then
+ if minetest.get_modpath("moreblocks") then
stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1], "bakedclay:" .. clay[1], {
description = clay[2] .. " Baked Clay",