Fix deprecated call for minetest settings

This commit is contained in:
Sys Quatre 2021-02-25 23:45:29 +01:00
parent 5083ada500
commit ab4e94cfba
1 changed files with 2 additions and 9 deletions

View File

@ -27,15 +27,8 @@ minetest.register_privilege("fp_create","Is able to create FailPoints and give t
-- Check configuration fields
data.PUB_MSG = false
data.STRICT_PLAYER_CHECK = true
if minetest.setting_getbool("fp_pubmsg") ~= nil then
data.PUB_MSG = minetest.setting_getbool("fp_pubmsg")
end
if minetest.setting_getbool("fp_strict_checking") ~= nil then
data.STRICT_PLAYER_CHECK = minetest.setting_getbool("fp_strict_checking")
end
data.PUB_MSG = minetest.settings.get_bool("fp_pubmsg", false)
data.STRICT_PLAYER_CHECK = minetest.settings.get_bool("fp_strict_checking", true)
-- Configuration application