forked from VoxeLibre/VoxeLibre
Fix crash with ghast achievement fireball_redir_serv (#4179)
Reviewed-on: MineClone2/MineClone2#4179 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: Araca <araca.prod@gmail.com> Co-committed-by: Araca <araca.prod@gmail.com>
This commit is contained in:
parent
0c372f987d
commit
cd0509c2e6
|
@ -132,7 +132,7 @@ mcl_mobs.register_arrow("mobs_mc:fireball", {
|
|||
}, nil)
|
||||
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1, true)
|
||||
local ent = mob:get_luaentity()
|
||||
if not ent or ent.health <= 0 then
|
||||
if (not ent or ent.health <= 0) and self._puncher then
|
||||
awards.unlock(self._puncher:get_player_name(), "mcl:fireball_redir_serv")
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue