1
0
Fork 0

Fixed running on_end for effects that aren't ending

potions_api_redo
the-real-herowl 2024-04-01 03:43:49 +02:00 committed by the-real-herowl
parent 623a3ada70
commit 6ece76e4c9
1 changed files with 1 additions and 1 deletions

View File

@ -1317,7 +1317,7 @@ function mcl_potions._reset_player_effects(player, set_hud)
end end
for name, effect in pairs(registered_effects) do for name, effect in pairs(registered_effects) do
if effect.on_end then effect.on_end(player) end if EF[name][player] and effect.on_end then effect.on_end(player) end
end end
mcl_potions._clear_cached_player_data(player) mcl_potions._clear_cached_player_data(player)