forked from mff/maptools
Fix minetest.setting_getbool()
deprecation warning
This commit is contained in:
parent
1ff1b355bc
commit
e6723e516b
|
@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
|||
maptools.config = {}
|
||||
|
||||
local function getbool_default(setting, default)
|
||||
local value = minetest.setting_getbool(setting)
|
||||
local value = minetest.settings:get_bool(setting)
|
||||
if value == nil then
|
||||
value = default
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user