]> git.lizzy.rs Git - xdecor.git/commitdiff
Don't interrupt nodes registration if new doors API ain't used
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Thu, 25 Feb 2016 14:59:32 +0000 (15:59 +0100)
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Thu, 25 Feb 2016 15:06:40 +0000 (16:06 +0100)
nodes.lua

index a27650c097ef0895e5eb669f92c9a300f2c88a70..a9d953fd93abe96bfea6035a715e1a4e03abd8b1 100644 (file)
--- a/nodes.lua
+++ b/nodes.lua
@@ -244,7 +244,7 @@ local xdecor_doors = {
 }
 
 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", {
                tiles = {{name = "xdecor_"..name.."_door.png", backface_culling=true}},
                description = string.gsub(" "..name, "%W%l", string.upper):sub(2):gsub("_", " ").." Door",
@@ -434,11 +434,9 @@ for _, b in pairs({{"cactus", "cactus"}, {"moon", "stone"}}) do
        })
        
        minetest.register_craft({
-       output = "xdecor:"..b[1].."brick",
-       recipe = {
-               {"default:brick", "default:"..b[2]}
-       }
-})
+               output = "xdecor:"..b[1].."brick",
+               recipe = {{"default:brick", "default:"..b[2]}}
+       })
 end
 
 xdecor.register("multishelf", {