only register moreblocks if available
parent
acc34edf1f
commit
d345cfe3d2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue