Fix crash when mob projectile hits player

master
Wuzzy 2021-05-16 00:43:26 +02:00
parent 80486af447
commit 8b4c07f82b
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ mobs:register_arrow("mobs_hades:fireball", {
player:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups = {fleshy=8},
}, 0) -- {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z})
})
end,
-- node hit, bursts into flame (cannot blast through obsidian)

View File

@ -86,7 +86,7 @@ mobs:register_arrow("mobs_hades:mese_arrow", {
player:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups = {fleshy=1},
}, 0) -- {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z})
})
end,
hit_node = function(self, pos, node)