Replace deprecated settings_* API methods

This commit is contained in:
ClobberXD 2018-12-31 04:38:25 +05:30 committed by rubenwardy
parent f2c864ac04
commit 904c47dea2
15 changed files with 29 additions and 33 deletions

View file

@ -30,7 +30,7 @@ function chatplus.init()
end
function chatplus.setting(name)
local get = minetest.setting_get("chatplus_" .. name)
local get = minetest.settings:get("chatplus_" .. name)
if get then
return get
elseif chatplus._defsettings[name]~= nil then