mirror of
https://github.com/minetest-mods/maptools.git
synced 2024-12-24 00:10:21 +01:00
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