]> git.lizzy.rs Git - xdecor.git/blobdiff - itemframe.lua
Work Table : fix crash on fail to fetch 'tiles' node definition
[xdecor.git] / itemframe.lua
index 4da174107acb6cb302da327045fb2951a8cd696c..9b795f341c554fc2e4b36b0a4de0332abdb1d93f 100644 (file)
@@ -85,10 +85,7 @@ xdecor.register("frame", {
        on_rotate = screwdriver.disallow,
        sunlight_propagates = true,
        inventory_image = "xdecor_frame.png",
-       node_box = {
-               type = "fixed",
-               fixed = {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}
-       },
+       node_box = xdecor.nodebox.slab_z(0.9375),
        tiles = {
                "xdecor_wood.png", "xdecor_wood.png", "xdecor_wood.png",
                "xdecor_wood.png", "xdecor_wood.png", "xdecor_frame.png"