Replace deprecated settings_* API methods

This commit is contained in:
ClobberXD 2018-12-31 04:38:25 +05:30 committed by rubenwardy
parent f2c864ac04
commit 904c47dea2
15 changed files with 29 additions and 33 deletions

View file

@ -83,7 +83,7 @@ local h_max = 40 -- maximum chest spawning height, relative to water_level
local t_min = 4 -- minimum amount of treasures found in a chest
local t_max = 7 -- maximum amount of treasures found in a chest
local water_level = tonumber(minetest.setting_get("water_level"))
local water_level = tonumber(minetest.settings:get("water_level"))
local get_node = minetest.get_node
local function findGroundLevel(pos, y_min, y_max)