1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 15:00:18 +01:00

Weather: Replace deprecated get2d with get_2d

This commit is contained in:
SmallJoker 2019-11-13 19:59:58 +01:00
parent 6fea665fcc
commit 5017f3b614

View File

@ -82,10 +82,10 @@ local function update_clouds()
nobj_speedx = nobj_speedx or minetest.get_perlin(np_speedx)
nobj_speedz = nobj_speedz or minetest.get_perlin(np_speedz)
local n_density = nobj_density:get2d({x = time, y = 0})
local n_thickness = nobj_thickness:get2d({x = time, y = 0})
local n_speedx = nobj_speedx:get2d({x = time, y = 0})
local n_speedz = nobj_speedz:get2d({x = time, y = 0})
local n_density = nobj_density:get_2d({x = time, y = 0})
local n_thickness = nobj_thickness:get_2d({x = time, y = 0})
local n_speedx = nobj_speedx:get_2d({x = time, y = 0})
local n_speedz = nobj_speedz:get_2d({x = time, y = 0})
for _, player in ipairs(minetest.get_connected_players()) do
local humid = minetest.get_humidity(player:get_pos())