Skip to content

Commit

Permalink
Fix for NPC rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryConstruct committed Oct 27, 2022
1 parent 290476f commit 9e85bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/TEdit/Terraria/CreativePowers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using SharpDX.Direct3D11;
using TEdit.ViewModel;

namespace TEdit.Terraria
{
namespace TEdit.Terraria
{
public class CreativePowers
{
public enum CreativePowerId : ushort
Expand Down Expand Up @@ -204,4 +204,4 @@ public void Load(BinaryReader r, uint WorldVersion)


}
}
}
2 changes: 1 addition & 1 deletion src/TEdit/View/WorldRenderXna.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9e85bc9

Please sign in to comment.