From 3eeb1c8ff270ade7b76c8d5b67a82e9cf8ef4a9c Mon Sep 17 00:00:00 2001 From: FyloZ Date: Sun, 19 Jul 2020 19:08:36 -0400 Subject: [PATCH] Fixed Timekeeper crash. --- Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs b/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs index d2822f9..74552fa 100644 --- a/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs +++ b/Content/Projectiles/Boss/DuneWyrm/Timekeeper.cs @@ -48,7 +48,7 @@ namespace Decimation.Content.Projectiles.Boss.DuneWyrm public override bool PreKill(int timeLeft) { - SiblingProjectile.Kill(); + SiblingProjectile?.Kill(); return true; } @@ -69,7 +69,7 @@ namespace Decimation.Content.Projectiles.Boss.DuneWyrm if (Sibling == -1) { projectile.position.Y -= 8f; - + Rotation = projectile.velocity.ToRotation(); Speed = projectile.velocity.Length();