fix setting_getbool

This commit is contained in:
Julien Maulny 2018-01-21 13:29:38 +01:00
parent f6e0db21b2
commit 4ce74dcad3
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreblocks.config = {}
local function getbool_default(setting, default)
local value = minetest.settings:get_bool(setting)
local value = minetest.setting_getbool(setting)
if value == nil then
value = default
end

View File

@ -15,7 +15,7 @@ stairsplus.expect_infinite_stacks = false
stairsplus.shapes_list = {}
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
end