From 4a2002215997197760decbf5a2fd71cdb13b7a84 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 22 Apr 2024 02:36:19 -0500 Subject: [PATCH] Fix --- NPCs/Yharon/Yharon.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index f9f157f01f..979ac62f3b 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -925,7 +925,7 @@ namespace CalamityMod.NPCs.Yharon { float bulletHellTeleportLocationDistance = 540f; Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); - Vector2 teleportLocation = -(player.velocity.SafeNormalize(Vector2.Zero) * bulletHellTeleportLocationDistance); + Vector2 teleportLocation = player.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; Vector2 center = player.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center; @@ -1302,7 +1302,7 @@ namespace CalamityMod.NPCs.Yharon { float bulletHellTeleportLocationDistance = 540f; Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); - Vector2 teleportLocation = -(player.velocity.SafeNormalize(Vector2.Zero) * bulletHellTeleportLocationDistance); + Vector2 teleportLocation = player.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; Vector2 center = player.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center; @@ -2050,7 +2050,7 @@ namespace CalamityMod.NPCs.Yharon float bulletHellTeleportLocationDistance = 540f; Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); - Vector2 teleportLocation = -(targetData.velocity.SafeNormalize(Vector2.Zero) * bulletHellTeleportLocationDistance); + Vector2 teleportLocation = targetData.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; Vector2 center = targetData.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center;