From 7f5cf945cafadb34c13f4a62a6ec193ced69c9d6 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 23 Nov 2024 18:40:13 -0600 Subject: [PATCH] Stop infinite loop of arrows stuck in yourself punching you --- mods/ITEMS/vl_projectile/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index 22e287c60..9a3bb0591 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -458,6 +458,7 @@ local function handle_entity_collision(self, entity_def, projectile_def, object) if type(allow_punching) == "function" then allow_punching = allow_punching(self, entity_def, projectile_def, object) end + if self._in_player then allow_punching = false end if not allow_punching then return end