From d131cbadefb2c65bc0fff4224c0a011bf7c7728b Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 3 Jul 2020 18:12:02 -0400 Subject: [PATCH] Allow drowning in lava.... --- mods/ITEMS/mcl_potions/functions.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 899fb83d1b..6100a65982 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -271,13 +271,13 @@ 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 - return hp_change - else + -- if player:get_breath() == 0 and hp_change == -4 then -- probably drowning + -- return hp_change + -- else return 0 - end - else - return hp_change + -- end + -- else + -- return hp_change end else