remove deprecated reference to minetest.env

This commit is contained in:
theFox6 2020-08-08 11:46:30 +02:00
parent d89ec7c161
commit 9f4664dddd
Signed by: theFox6
GPG Key ID: C884FE8D3BCE128A
1 changed files with 1 additions and 1 deletions

View File

@ -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)