From 9c11d0ce9268028b013881b37c0c36c5f8fb2b16 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 15 Sep 2024 20:00:19 -0500 Subject: [PATCH] Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) --- mods/ENTITIES/mcl_mobs/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/init.lua b/mods/ENTITIES/mcl_mobs/init.lua index f1f107432..2797eeb78 100644 --- a/mods/ENTITIES/mcl_mobs/init.lua +++ b/mods/ENTITIES/mcl_mobs/init.lua @@ -383,7 +383,6 @@ end -- register arrow for shoot attack function mcl_mobs.register_arrow(name, def) - if not name or not def then return end -- errorcheck local behaviors = {} @@ -417,6 +416,7 @@ function mcl_mobs.register_arrow(name, def) ignore_gravity = true, damages_players = true, allow_punching = function(self, entity_def, projectile_def, object) + if self.timer > 2 then return true end if self._owner and object == self._owner.object then return false end return true end,