1
0
Fork 0

Correct drowning damage

This commit is contained in:
Brandon 2020-07-02 18:05:46 -04:00
parent b4c658904b
commit b2d634acb8
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ minetest.register_on_player_hpchange(function(player, hp_change)
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 -1 return hp_change
else else
return 0 return 0
end end