From b4c658904b282bd4fdd95c6eea307210d9fa7c68 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 2 Jul 2020 18:04:39 -0400 Subject: [PATCH] Fix drowning damage --- mods/ITEMS/mcl_potions/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index aa07bab1..1e89ea3e 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -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