Don't interrupt nodes registration if new doors API ain't used
This commit is contained in:
parent
c804c26cd9
commit
a4f103b3cf
@ -244,7 +244,7 @@ local xdecor_doors = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for name, recipe in pairs(xdecor_doors) do
|
for name, recipe in pairs(xdecor_doors) do
|
||||||
if not doors.register then return end
|
if not doors.register then break end
|
||||||
doors.register(name.."_door", {
|
doors.register(name.."_door", {
|
||||||
tiles = {{name = "xdecor_"..name.."_door.png", backface_culling=true}},
|
tiles = {{name = "xdecor_"..name.."_door.png", backface_culling=true}},
|
||||||
description = string.gsub(" "..name, "%W%l", string.upper):sub(2):gsub("_", " ").." Door",
|
description = string.gsub(" "..name, "%W%l", string.upper):sub(2):gsub("_", " ").." Door",
|
||||||
@ -435,10 +435,8 @@ for _, b in pairs({{"cactus", "cactus"}, {"moon", "stone"}}) do
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "xdecor:"..b[1].."brick",
|
output = "xdecor:"..b[1].."brick",
|
||||||
recipe = {
|
recipe = {{"default:brick", "default:"..b[2]}}
|
||||||
{"default:brick", "default:"..b[2]}
|
})
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
xdecor.register("multishelf", {
|
xdecor.register("multishelf", {
|
||||||
|
Loading…
Reference in New Issue
Block a user