From 5d371e55a1b41d11b0f09dfcddfec9138732a3ba 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