Fix deprecation warnings (#44)

Co-authored-by: sys4 <bricassa@sys4.fr>
This commit is contained in:
sys4-fr
2021-04-18 16:30:05 +02:00
committed by GitHub
parent fb3c358f74
commit fb6b666895
4 changed files with 7 additions and 7 deletions

View File

@ -266,7 +266,7 @@ end
mapgen.getCavePerlinAt = function(pos)
cavePointPerlin = cavePointPerlin or minetest.get_perlin(mapgen.np_cave)
return cavePointPerlin:get3d(pos)
return cavePointPerlin:get_3d(pos)
end
@ -485,7 +485,7 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
for y = start_y, math_max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
local nval_cave = nobj_cave_point:get3d({x = target_x, y = y, z = target_z})
local nval_cave = nobj_cave_point:get_3d({x = target_x, y = y, z = target_z})
if nval_cave > TCAVE then -- Cavern
air = air + 1
@ -509,4 +509,4 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
return math_max(start_y, NETHER_FLOOR + BLEND) -- Fallback
end
minetest.register_on_generated(on_generated)
minetest.register_on_generated(on_generated)