mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-27 20:17:25 +02:00
Merge pull request 'Stop dead mobs from getting in the way of fighting other mobs' (#1623) from jordan4ibanez/MineClone2:mineclone5 into mineclone5
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1623
This commit is contained in:
commit
d04e694d1a
@ -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 New Issue
Block a user