private void HandlePreCollision(SpeculativeRigidbody myRigidbody, PixelCollider myPixelCollider, SpeculativeRigidbody otherRigidbody, PixelCollider otherPixelCollider) { try { if (otherRigidbody) { if (otherRigidbody.GetComponent <GameActor>()) { PhysicsEngine.SkipCollision = true; } if (otherRigidbody.GetComponent <Projectile>()) { if (otherRigidbody.GetComponent <Projectile>().ProjectilePlayerOwner()) { PhysicsEngine.SkipCollision = true; } else { myRigidbody.GetComponentInChildren <MinorBreakable>().Break(); //otherRigidbody.GetComponent<Projectile>().DieInAir(); } } } } catch (Exception e) { ETGModConsole.Log(e.Message); ETGModConsole.Log(e.StackTrace); } }