mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 07:13:00 +00:00
Fix drowning damage
This commit is contained in:
parent
5db80b3ec5
commit
b4c658904b
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
|||
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 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
|
||||
else
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue