mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Fixed effects still being handled after mob death
This commit is contained in:
parent
914e3c6c2a
commit
e806d5f3ce
1 changed files with 1 additions and 1 deletions
|
@ -1333,7 +1333,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not EF[name][object] or EF[name][object].timer >= vals.dur then
|
if not object or not EF[name][object] or EF[name][object].timer >= vals.dur or not object:get_pos() then
|
||||||
if effect.on_end then effect.on_end(object) end
|
if effect.on_end then effect.on_end(object) end
|
||||||
EF[name][object] = nil
|
EF[name][object] = nil
|
||||||
if effect.after_end then effect.after_end(object) end
|
if effect.after_end then effect.after_end(object) end
|
||||||
|
|
Loading…
Reference in a new issue