diff --git a/EndlessClient/Rendering/NPC/NPCRenderer.cs b/EndlessClient/Rendering/NPC/NPCRenderer.cs index ae6bc37b..66e4291a 100644 --- a/EndlessClient/Rendering/NPC/NPCRenderer.cs +++ b/EndlessClient/Rendering/NPC/NPCRenderer.cs @@ -16,6 +16,8 @@ using Microsoft.Xna.Framework.Graphics; using Optional; using System; +using System.Linq; +using System.Windows.Markup; using XNAControls; namespace EndlessClient.Rendering.NPC @@ -129,6 +131,11 @@ public override void Initialize() _spriteBatch = new SpriteBatch(Game.GraphicsDevice); + var frameTexture = _npcSpriteSheet.GetNPCTexture(_enfFileProvider.ENFFile[NPC.ID].Graphic, NPC.Frame, NPC.Direction); + var data = new Color[frameTexture.Width * frameTexture.Height]; + frameTexture.GetData(data); + _isBlankSprite = data.All(x => x.A == 0); + base.Initialize(); }