Prevent projectiles from colliding with their guns (#20439)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user