From 1de76ccc4dcd1a99b559a85d0026a34db5067c4e Mon Sep 17 00:00:00 2001 From: Dominic Date: Fri, 20 May 2022 13:48:46 -0500 Subject: [PATCH] Fixed PrismBack causing crashes --- NPCs/SunkenSea/PrismBack.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/SunkenSea/PrismBack.cs b/NPCs/SunkenSea/PrismBack.cs index dfde2d8524..5da1b7326b 100644 --- a/NPCs/SunkenSea/PrismBack.cs +++ b/NPCs/SunkenSea/PrismBack.cs @@ -126,10 +126,10 @@ namespace CalamityMod.NPCs.SunkenSea Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y); Vector2 vector11 = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2)); Vector2 vector = center - screenPos; - vector -= new Vector2((float)ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismTurtleGlow").Value.Width, (float)(ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismTurtleGlow").Value.Height / Main.npcFrameCount[NPC.type])) * 1f / 2f; + vector -= new Vector2((float)ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismBackGlow").Value.Width, (float)(ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismBackGlow").Value.Height / Main.npcFrameCount[NPC.type])) * 1f / 2f; vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY); Color color = new Color(127 - NPC.alpha, 127 - NPC.alpha, 127 - NPC.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Blue); - Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismTurtleGlow").Value, vector, + Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/SunkenSea/PrismBackGlow").Value, vector, new Microsoft.Xna.Framework.Rectangle?(NPC.frame), color, NPC.rotation, vector11, 1f, spriteEffects, 0f); }