1
0
mirror of https://github.com/minetest-mods/maptools.git synced 2025-07-08 17:50:18 +02:00

Fix minetest.setting_getbool() deprecation warning

This commit is contained in:
Hugo Locurcio
2019-04-03 00:14:44 +02:00
parent 1ff1b355bc
commit e6723e516b

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