From 32a5dca9044592347d1a5c938399a1e80a2009b4 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Mon, 9 Sep 2024 06:58:31 -0500 Subject: [PATCH] Make splash, lingering and othe projectiles hit players --- mods/ITEMS/vl_projectile/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index 7dc6888fb..091394ab1 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -324,7 +324,7 @@ function mod.collides_with_entities(self, dtime, entity_def, projectile_def) local object = objects[i] local entity = object:get_luaentity() - if entity and entity.name ~= self.object:get_luaentity().name then + if object ~= self.object and (not entity or entity.name ~= self.name) then if object:is_player() then return handle_entity_collision(self, entity_def, projectile_def, object) elseif (entity.is_mob or entity._hittable_by_projectile) then