From a3b44013fc331f3cabbb4c55009bf737a0a2c3af Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sat, 23 Sep 2023 16:08:35 -0400 Subject: [PATCH] Prevent projectiles from colliding with their guns (#20439) --- Content.Shared/Projectiles/SharedProjectileSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Projectiles/SharedProjectileSystem.cs b/Content.Shared/Projectiles/SharedProjectileSystem.cs index 92465be2e5..6c5d7897c2 100644 --- a/Content.Shared/Projectiles/SharedProjectileSystem.cs +++ b/Content.Shared/Projectiles/SharedProjectileSystem.cs @@ -128,7 +128,7 @@ public abstract partial class SharedProjectileSystem : EntitySystem private void PreventCollision(EntityUid uid, ProjectileComponent component, ref PreventCollideEvent args) { - if (component.IgnoreShooter && args.OtherEntity == component.Shooter) + if (component.IgnoreShooter && (args.OtherEntity == component.Shooter || args.OtherEntity == component.Weapon)) { args.Cancelled = true; }