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,6 +54,7 @@ for _, color in ipairs({"red", "blue", "black"}) do
y_min = planet_mars.y_start, y_min = planet_mars.y_start,
}) })
if minetest.get_modpath("moreblocks") then
stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", { stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", {
description = color .. " marble", description = color .. " marble",
tiles = {"planet_mars_" .. color .. "marble.png"}, tiles = {"planet_mars_" .. color .. "marble.png"},
@ -71,5 +72,6 @@ for _, color in ipairs({"red", "blue", "black"}) do
tiles = {"planet_mars_" .. color .. "marble_polished.png"}, tiles = {"planet_mars_" .. color .. "marble_polished.png"},
groups = {cracky=3} groups = {cracky=3}
}) })
end
end end