]> git.lizzy.rs Git - xdecor.git/blobdiff - handlers/registration.lua
Fix condition for new typo of setting (#89)
[xdecor.git] / handlers / registration.lua
index f0db4fa17d2e6742d211c6a524d5299049f2c649..cbeabdb03822c105f22d5c9e3d17abe0343877a0 100644 (file)
@@ -122,8 +122,10 @@ function xdecor.register(name, def)
 
        minetest.register_node("xdecor:"..name, def)
 
-       if minetest.settings:get_bool("disable_xdecor_workbench") and 
-         (minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs")) then
+       local workbench = minetest.settings:get_bool("enable_xdecor_workbench")
+
+       if workbench == false and
+          (minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs")) then
                if xdecor.stairs_valid_def(def) then
                        xdecor_stairs_alternative("xdecor:"..name, def)
                end