Fix condition for new typo of setting (#89)
* Fix condition for new typo of setting * Add moreblocks in depends
This commit is contained in:
parent
a8000f99fd
commit
4888c40464
@ -5,3 +5,4 @@ stairs
|
||||
xpanes
|
||||
fire?
|
||||
oresplus?
|
||||
moreblocks?
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user