Fixed Timekeeper crash.

This commit is contained in:
FyloZ 2020-07-19 19:08:36 -04:00
parent 8091c18e7d
commit 3eeb1c8ff2

View File

@ -48,7 +48,7 @@ namespace Decimation.Content.Projectiles.Boss.DuneWyrm
public override bool PreKill(int timeLeft) public override bool PreKill(int timeLeft)
{ {
SiblingProjectile.Kill(); SiblingProjectile?.Kill();
return true; return true;
} }
@ -69,7 +69,7 @@ namespace Decimation.Content.Projectiles.Boss.DuneWyrm
if (Sibling == -1) if (Sibling == -1)
{ {
projectile.position.Y -= 8f; projectile.position.Y -= 8f;
Rotation = projectile.velocity.ToRotation(); Rotation = projectile.velocity.ToRotation();
Speed = projectile.velocity.Length(); Speed = projectile.velocity.Length();