From 9e85bc9ac27a12f8d43fe7a36674107ee64b5109 Mon Sep 17 00:00:00 2001 From: BinaryConstruct Date: Wed, 26 Oct 2022 22:32:01 -0500 Subject: [PATCH] Fix for NPC rendering --- src/TEdit/Terraria/CreativePowers.cs | 6 +++--- src/TEdit/View/WorldRenderXna.xaml.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TEdit/Terraria/CreativePowers.cs b/src/TEdit/Terraria/CreativePowers.cs index 7e5f3d48..6e97a9f3 100644 --- a/src/TEdit/Terraria/CreativePowers.cs +++ b/src/TEdit/Terraria/CreativePowers.cs @@ -4,8 +4,8 @@ using SharpDX.Direct3D11; using TEdit.ViewModel; -namespace TEdit.Terraria -{ +namespace TEdit.Terraria +{ public class CreativePowers { public enum CreativePowerId : ushort @@ -204,4 +204,4 @@ public void Load(BinaryReader r, uint WorldVersion) } -} +} diff --git a/src/TEdit/View/WorldRenderXna.xaml.cs b/src/TEdit/View/WorldRenderXna.xaml.cs index 23d990e4..e6eecfd5 100644 --- a/src/TEdit/View/WorldRenderXna.xaml.cs +++ b/src/TEdit/View/WorldRenderXna.xaml.cs @@ -2850,7 +2850,7 @@ private void DrawPoints() private void DrawNpcTexture(NPC npc) { int npcId = npc.SpriteId; - string townNpcName = World.NpcNames[npcId]; + string townNpcName = World.NpcNames[npcId].Replace(" ", ""); bool isPartying = _wvm.CurrentWorld.PartyingNPCs.Contains(npcId); int variation = npc.TownNpcVariationIndex;