From 69d994a2a28b435a5cc37528fccce04c44d1d5ba Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Thu, 18 May 2017 02:33:56 -0700 Subject: Replace deprecated methods: (#179) - 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool' --- luaentity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'luaentity.lua') diff --git a/luaentity.lua b/luaentity.lua index ab7280c..382b0c1 100644 --- a/luaentity.lua +++ b/luaentity.lua @@ -71,7 +71,7 @@ end local active_blocks = {} -- These only contain active blocks near players (i.e., not forceloaded ones) local move_entities_globalstep_part1 = function(dtime) - local active_block_range = tonumber(minetest.setting_get("active_block_range")) or 2 + local active_block_range = tonumber(minetest.settings:get("active_block_range")) or 2 local new_active_blocks = {} for _, player in ipairs(minetest.get_connected_players()) do local blockpos = get_blockpos(player:getpos()) -- cgit v1.2.3