mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fixed running on_end for effects that aren't ending
This commit is contained in:
parent
6dab6158b9
commit
7ae31790bf
1 changed files with 1 additions and 1 deletions
|
@ -1317,7 +1317,7 @@ function mcl_potions._reset_player_effects(player, set_hud)
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
mcl_potions._clear_cached_player_data(player)
|
||||
|
|
Loading…
Reference in a new issue