From f00dc212527ca8b39cd2a4497726444b241486d2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 19 Aug 2020 18:38:38 +0200 Subject: [PATCH] Make dying mobs non-pointable --- mods/ENTITIES/mcl_mobs/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index aa5809cdc6..098485f327 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -674,6 +674,9 @@ local check_for_death = function(self, cause, cmi_cause) self.blinktimer = 0 self.passive = true self.state = "die" + self.object:set_properties({ + pointable = false, + }) set_velocity(self, 0) set_animation(self, "die")