mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix possible crash
This commit is contained in:
parent
2e01180fc8
commit
7c15b929fa
1 changed files with 1 additions and 1 deletions
|
@ -2058,7 +2058,7 @@ local monster_attack = function(self)
|
|||
player = obj.object
|
||||
name = obj.name or ""
|
||||
end
|
||||
if obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then
|
||||
if obj and obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then
|
||||
table.insert(blacklist_attack, obj.attack)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue