From 8587185d1397cc85941c4fccd83bf7239cd0d7dd Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 18 Aug 2022 00:17:07 -0400 Subject: [PATCH] Revert "fixed galaxia (kinda ish)" This reverts commit 7ab92207b9ac7abd89e2f1fca2f1a234b82068e2. --- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 182b33602f..c8423000a7 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -298,16 +298,14 @@ namespace CalamityMod.Items.Weapons.Melee int currentFrame = ((int)Math.Floor(Main.GlobalTimeWrappedHourly * 15f)) % 7; Rectangle animFrame = new Rectangle(0, 128 * currentFrame, 126, 126); - // I don't think the special visuals can be salvaged without ruining the item offset :( - // Or at least, I spent over an hour trying to fix it with no results - - /*spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, null, null, null, null, Main.UIScaleMatrix);*/ + spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, null, null, null, null, Main.UIScaleMatrix); spriteBatch.Draw(outlineTexture, Item.Center - Main.screenPosition, animFrame, lightColor, rotation, Item.Size * 0.5f, scale, SpriteEffects.None, 0f); - /*spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Main.UIScaleMatrix);*/ + spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Main.UIScaleMatrix); + spriteBatch.Draw(itemTexture, Item.Center - Main.screenPosition, animFrame, lightColor, rotation, Item.Size * 0.5f, scale, SpriteEffects.None, 0f); return false;