fix setting_getbool
This commit is contained in:
parent
f6e0db21b2
commit
4ce74dcad3
|
@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
moreblocks.config = {}
|
moreblocks.config = {}
|
||||||
|
|
||||||
local function getbool_default(setting, default)
|
local function getbool_default(setting, default)
|
||||||
local value = minetest.settings:get_bool(setting)
|
local value = minetest.setting_getbool(setting)
|
||||||
if value == nil then
|
if value == nil then
|
||||||
value = default
|
value = default
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,7 +15,7 @@ stairsplus.expect_infinite_stacks = false
|
||||||
stairsplus.shapes_list = {}
|
stairsplus.shapes_list = {}
|
||||||
|
|
||||||
if not minetest.get_modpath("unified_inventory")
|
if not minetest.get_modpath("unified_inventory")
|
||||||
and minetest.settings:get_bool("creative_mode") then
|
and minetest.setting_getbool("creative_mode") then
|
||||||
stairsplus.expect_infinite_stacks = true
|
stairsplus.expect_infinite_stacks = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue