mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Stop dead mobs from getting in the way of fighting other mobs
This commit is contained in:
parent
73b4d3c1d2
commit
36d5af1d15
1 changed files with 5 additions and 0 deletions
|
@ -104,6 +104,11 @@ mobs.death_logic = function(self, dtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--stop mob from getting in the way of other mobs you're fighting
|
||||||
|
if self.object:get_properties().pointable then
|
||||||
|
self.object:set_properties({pointable = false})
|
||||||
|
end
|
||||||
|
|
||||||
--the final POOF of a mob despawning
|
--the final POOF of a mob despawning
|
||||||
if self.death_animation_timer >= 1.25 then
|
if self.death_animation_timer >= 1.25 then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue