From: SmallJoker Date: Wed, 13 Nov 2019 18:59:58 +0000 (+0100) Subject: Weather: Replace deprecated get2d with get_2d X-Git-Tag: 5.2.0~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5017f3b6140d2fcec47758c70e53d0011c955f21;p=oweals%2Fminetest_game.git Weather: Replace deprecated get2d with get_2d --- diff --git a/mods/weather/init.lua b/mods/weather/init.lua index 2653ecee..c0d1098f 100644 --- a/mods/weather/init.lua +++ b/mods/weather/init.lua @@ -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())