From ffee992ed1d7d8f39a30af3dfed0ed5df576b2e3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 11 Feb 2021 20:00:49 +0000 Subject: [PATCH] replace deprecated settings functions --- hud.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hud.lua b/hud.lua index e33901e..4a5d711 100644 --- a/hud.lua +++ b/hud.lua @@ -1,13 +1,13 @@ local S = protector.intllib -local radius = (tonumber(minetest.setting_get("protector_radius")) or 5) +local radius = (tonumber(minetest.settings:get("protector_radius")) or 5) -- radius limiter (minetest cannot handle node volume of more than 4096000) if radius > 22 then radius = 22 end local hud = {} local hud_timer = 0 -local hud_interval = (tonumber(minetest.setting_get("protector_hud_interval")) or 5) +local hud_interval = (tonumber(minetest.settings:get("protector_hud_interval")) or 5) if hud_interval > 0 then minetest.register_globalstep(function(dtime)