From 9f4664dddd0814f91dde3036afc7f3bc6bb7e3d0 Mon Sep 17 00:00:00 2001 From: theFox6 Date: Sat, 8 Aug 2020 11:46:30 +0200 Subject: [PATCH] remove deprecated reference to minetest.env --- weather/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather/api.lua b/weather/api.lua index 939baa5..3ee1326 100644 --- a/weather/api.lua +++ b/weather/api.lua @@ -136,7 +136,7 @@ local function handle_damage(damage,player, downfall_origin) end else --check if player is affected by downfall, if it's dark there are nodes nearby - if minetest.env:get_node_light(player:get_pos(), 0.5) ~= 15 then return end + if minetest.get_node_light(player:get_pos(), 0.5) ~= 15 then return end end if math.random() < damage.chance then player:set_hp(player:get_hp()-damage.amount)