minetest v5 function deprecation (#5)

replace deprecated function call
master
zeuner 2019-02-11 17:43:04 +01:00 committed by Pierre-Adrien Langrognet
parent 0a059c2ecc
commit 46ecf9a42b
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
if not minetest.setting_getbool("enable_pvp") then
if not minetest.settings:get_bool("enable_pvp") then
minetest.log("error", "[PvP Plus] PvP Plus cannot work if PvP is disabled. Please enable PvP.")
else
dofile(minetest.get_modpath(minetest.get_current_modname()).."/pvp.lua")

View File

@ -1,4 +1,4 @@
local tournament_starting_time = tonumber(minetest.setting_get("pvpplus.tournament_starting_time")) or 60 -- seconds
local tournament_starting_time = tonumber(minetest.settings:get("pvpplus.tournament_starting_time")) or 60 -- seconds
local tournament = pvpplus.tournament -- Shortcut reference
minetest.register_privilege("tournament_mod", "PvP Tournament Moderator")

View File

@ -3,9 +3,9 @@ tournament.hud = {}
tournament.hud_list = {}
-- These values cannot be exact for all clients. Default values should be fine for most of them.
local margin = tonumber(minetest.setting_get("pvpplus.tournament_hud_margin")) or 10 -- pixels
local font_width = tonumber(minetest.setting_get("pvpplus.font_width")) or 5 -- pixels
local separation = tonumber(minetest.setting_get("pvpplus.tournament_hud_separation")) or 18 -- pixels
local margin = tonumber(minetest.settings:get("pvpplus.tournament_hud_margin")) or 10 -- pixels
local font_width = tonumber(minetest.settings:get("pvpplus.font_width")) or 5 -- pixels
local separation = tonumber(minetest.settings:get("pvpplus.tournament_hud_separation")) or 18 -- pixels
function pvpplus.tournament_hud_update_list()
tournament.hud_list = {}