Don't interrupt nodes registration if new doors API ain't used

This commit is contained in:
Jean-Patrick Guerrero 2016-02-25 15:59:32 +01:00
parent c804c26cd9
commit a4f103b3cf

View File

@ -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", {