mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Fix crash when mob dies after poison/regen
This commit is contained in:
parent
ae4ede757a
commit
09ee912096
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_poisoned[player].timer >= is_poisoned[player].dur then
|
if is_poisoned[player] and is_poisoned[player].timer >= is_poisoned[player].dur then
|
||||||
is_poisoned[player] = nil
|
is_poisoned[player] = nil
|
||||||
if is_player then
|
if is_player then
|
||||||
meta = player:get_meta()
|
meta = player:get_meta()
|
||||||
|
@ -123,7 +123,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_regenerating[player].timer >= is_regenerating[player].dur then
|
if is_regenerating[player] and is_regenerating[player].timer >= is_regenerating[player].dur then
|
||||||
is_regenerating[player] = nil
|
is_regenerating[player] = nil
|
||||||
if is_player then
|
if is_player then
|
||||||
meta = player:get_meta()
|
meta = player:get_meta()
|
||||||
|
|
Loading…
Reference in a new issue