Skip to content
Snippets Groups Projects
Commit 4888c404 authored by Jat15's avatar Jat15 Committed by kilbith
Browse files

Fix condition for new typo of setting (#89)

* Fix condition for new typo of setting
* Add moreblocks in depends
parent a8000f99
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,4 @@ stairs
xpanes
fire?
oresplus?
moreblocks?
\ No newline at end of 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment