diff options
author | SaKeL <juraj.vajda@gmail.com> | 2018-07-22 07:20:35 -0400 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-07-22 13:20:35 +0200 |
commit | 3270942a0fd264d9d0e5c9dc1ebac98d49ff8108 (patch) | |
tree | 3614ad828cafb85bf63aedaf9a45f03c67ed39af | |
parent | 6738109c15f53b8f57b711719c2334b1c575bd2e (diff) | |
download | xban2-3270942a0fd264d9d0e5c9dc1ebac98d49ff8108.tar.gz xban2-3270942a0fd264d9d0e5c9dc1ebac98d49ff8108.tar.bz2 xban2-3270942a0fd264d9d0e5c9dc1ebac98d49ff8108.zip |
Replace deprecated minetest.setting_* functions (#16)
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |