only register moreblocks if available

master
BuckarooBanzay 2020-09-10 20:27:12 +02:00
parent acc34edf1f
commit d345cfe3d2
1 changed files with 17 additions and 15 deletions

View File

@ -54,22 +54,24 @@ for _, color in ipairs({"red", "blue", "black"}) do
y_min = planet_mars.y_start,
})
stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", {
description = color .. " marble",
tiles = {"planet_mars_" .. color .. "marble.png"},
groups = {cracky=3}
})
if minetest.get_modpath("moreblocks") then
stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", {
description = color .. " marble",
tiles = {"planet_mars_" .. color .. "marble.png"},
groups = {cracky=3}
})
stairsplus:register_all("planet_mars", color .. "marble_bricks", "planet_mars:" .. color .. "marble_bricks", {
description = color .. " marble bricks",
tiles = {"planet_mars_" .. color .. "marble_bricks.png"},
groups = {cracky=3}
})
stairsplus:register_all("planet_mars", color .. "marble_bricks", "planet_mars:" .. color .. "marble_bricks", {
description = color .. " marble bricks",
tiles = {"planet_mars_" .. color .. "marble_bricks.png"},
groups = {cracky=3}
})
stairsplus:register_all("planet_mars", color .. "marble_polished", "planet_mars:" .. color .. "marble_polished", {
description = color .. " marble polished",
tiles = {"planet_mars_" .. color .. "marble_polished.png"},
groups = {cracky=3}
})
stairsplus:register_all("planet_mars", color .. "marble_polished", "planet_mars:" .. color .. "marble_polished", {
description = color .. " marble polished",
tiles = {"planet_mars_" .. color .. "marble_polished.png"},
groups = {cracky=3}
})
end
end