mirror of
https://github.com/minetest-mods/xban2.git
synced 2025-01-08 19:10:18 +01:00
Replace deprecated minetest.setting_* functions (#16)
This commit is contained in:
parent
6738109c15
commit
3270942a0f
4
init.lua
4
init.lua
@ -9,9 +9,9 @@ local tempbans = { }
|
||||
local DEF_SAVE_INTERVAL = 300 -- 5 minutes
|
||||
local DEF_DB_FILENAME = minetest.get_worldpath().."/xban.db"
|
||||
|
||||
local DB_FILENAME = minetest.setting_get("xban.db_filename")
|
||||
local DB_FILENAME = minetest.settings:get("xban.db_filename")
|
||||
local SAVE_INTERVAL = tonumber(
|
||||
minetest.setting_get("xban.db_save_interval")) or DEF_SAVE_INTERVAL
|
||||
minetest.settings:get("xban.db_save_interval")) or DEF_SAVE_INTERVAL
|
||||
|
||||
if (not DB_FILENAME) or (DB_FILENAME == "") then
|
||||
DB_FILENAME = DEF_DB_FILENAME
|
||||
|
Loading…
Reference in New Issue
Block a user