From ac17553c913c630547e069e3b9945889ab8e0cc5 Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Tue, 4 Jan 2022 16:55:25 -0800 Subject: [PATCH] Fix water breathing problem --- 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 c3b034b66..8befd42b2 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -195,7 +195,7 @@ minetest.register_globalstep(function(dtime) if player:get_pos() then mcl_potions._add_spawner(player, "#2E5299") end if player:get_breath() then - if player:get_breath() < 10 then player:set_breath(10) end + player:set_breath(10) end if EF.water_breathing[player].timer >= EF.water_breathing[player].dur then