From fc56472390860dc3534a4c929b80566001cc3046 Mon Sep 17 00:00:00 2001 From: MoNTE48 Date: Thu, 10 Oct 2019 00:16:52 +0200 Subject: [PATCH] Fix deprecated --- protector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protector.lua b/protector.lua index a9db3fd..6115061 100644 --- a/protector.lua +++ b/protector.lua @@ -1,4 +1,4 @@ -local creative_mode = minetest.setting_getbool("creative_mode") +local creative_mode = minetest.settings:get_bool("creative_mode") local function cyan(str) return minetest.colorize("#00FFFF", str) @@ -8,7 +8,7 @@ local function red(str) return minetest.colorize("#FF5555", str) end -local radius = minetest.setting_get("areasprotector_radius") or 8 +local radius = minetest.settings:get("areasprotector_radius") or 8 local function remove_display(pos) local objs = minetest.get_objects_inside_radius(pos, 0.5)