From 36d5af1d15b432d84e24e161b78d4b41ce2731bd Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 23 Apr 2021 16:35:16 -0400 Subject: [PATCH] Stop dead mobs from getting in the way of fighting other mobs --- mods/ENTITIES/mcl_mobs/api/mob_functions/death_logic.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/death_logic.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/death_logic.lua index f0524a76f..36d6f41ca 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/death_logic.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/death_logic.lua @@ -104,6 +104,11 @@ mobs.death_logic = function(self, dtime) 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 if self.death_animation_timer >= 1.25 then