mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Merge pull request 'Fix crash on ghast explosions' (#2339) from fix_ghast_crash into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2339
This commit is contained in:
commit
7429f5dc93
1 changed files with 6 additions and 1 deletions
|
@ -107,7 +107,12 @@ mcl_mobs:register_arrow("mobs_mc:fireball", {
|
|||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 6},
|
||||
}, nil)
|
||||
mcl_mobs:boom(self, self.object:get_pos(), 1, true)
|
||||
local p = self.object:get_pos()
|
||||
if p then
|
||||
mcl_mobs:boom(self, p, 1, true)
|
||||
else
|
||||
mcl_mobs:boom(self, player:get_pos(), 1, true)
|
||||
end
|
||||
end,
|
||||
|
||||
hit_mob = function(self, mob)
|
||||
|
|
Loading…
Reference in a new issue