From af7151883c4e1ee1ea7f15f08c19da29cb2f5a8b Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 4 Sep 2025 14:10:17 -0700 Subject: [PATCH] Small direction fix Hopefully fixes the direction flickering when using a base gun holdout --- Projectiles/Typeless/XykWings.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Projectiles/Typeless/XykWings.cs b/Projectiles/Typeless/XykWings.cs index a602acf9bd..5c4a83a9a4 100644 --- a/Projectiles/Typeless/XykWings.cs +++ b/Projectiles/Typeless/XykWings.cs @@ -52,9 +52,6 @@ namespace CalamityMod.Projectiles.Typeless public override void AI() { - if (!BreakApart) - lastDir = Owner.direction; - float intendedScale = 0.85f; float spawnAnimTime = 12 + wingNum; if (time == 0) @@ -267,6 +264,11 @@ namespace CalamityMod.Projectiles.Typeless time++; } } + public override void PostDraw(Color lightColor) + { + if (!BreakApart) + lastDir = Owner.direction; + } public override bool PreDraw(ref Color lightColor) { float topWingNum = (checkActiveWings() - 1);