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
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -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