]> git.lizzy.rs Git - xdecor.git/commitdiff
Fix condition for new typo of setting (#89)
authorJat15 <jinan15@hotmail.com>
Mon, 2 Apr 2018 16:27:16 +0000 (18:27 +0200)
committerkilbith <kilbith@users.noreply.github.com>
Mon, 2 Apr 2018 16:27:16 +0000 (18:27 +0200)
* Fix condition for new typo of setting
* Add moreblocks in depends

depends.txt
handlers/registration.lua

index 35aa8a6e5ab5c368f999c3ce933aef3564111086..49669a275e87a7ab30471c3dfda4adbce053fc9d 100644 (file)
@@ -5,3 +5,4 @@ stairs
 xpanes
 fire?
 oresplus?
+moreblocks?
\ No newline at end of file
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