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
|
xpanes
|
||||||
fire?
|
fire?
|
||||||
oresplus?
|
oresplus?
|
||||||
|
moreblocks?
|
@ -122,7 +122,9 @@ function xdecor.register(name, def)
|
|||||||
|
|
||||||
minetest.register_node("xdecor:"..name, def)
|
minetest.register_node("xdecor:"..name, def)
|
||||||
|
|
||||||
if minetest.settings:get_bool("disable_xdecor_workbench") and
|
local workbench = minetest.settings:get_bool("enable_xdecor_workbench")
|
||||||
|
|
||||||
|
if workbench == false and
|
||||||
(minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs")) then
|
(minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs")) then
|
||||||
if xdecor.stairs_valid_def(def) then
|
if xdecor.stairs_valid_def(def) then
|
||||||
xdecor_stairs_alternative("xdecor:"..name, def)
|
xdecor_stairs_alternative("xdecor:"..name, def)
|
||||||
|
Loading…
Reference in New Issue
Block a user