mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Allow drowning in lava....
This commit is contained in:
parent
b2d634acb8
commit
d131cbadef
1 changed files with 6 additions and 6 deletions
|
@ -271,13 +271,13 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
||||||
local player_info = mcl_playerinfo[player:get_player_name()]
|
local player_info = mcl_playerinfo[player:get_player_name()]
|
||||||
|
|
||||||
if is_fire_node[player_info.node_head] or is_fire_node[player_info.node_feet] or is_fire_node[player_info.node_stand] then
|
if is_fire_node[player_info.node_head] or is_fire_node[player_info.node_feet] or is_fire_node[player_info.node_stand] then
|
||||||
if player:get_breath() == 0 and hp_change == -4 then -- probably drowning
|
-- if player:get_breath() == 0 and hp_change == -4 then -- probably drowning
|
||||||
return hp_change
|
-- return hp_change
|
||||||
else
|
-- else
|
||||||
return 0
|
return 0
|
||||||
end
|
-- end
|
||||||
else
|
-- else
|
||||||
return hp_change
|
-- return hp_change
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue