Fix MapRenderer crash when checking if an entity has an ISpriteComponent

This commit is contained in:
DrSmugleaf
2022-01-07 19:10:39 +01:00
parent c30c8020e8
commit 67eaa7bfe6

View File

@@ -58,7 +58,7 @@ namespace Content.MapRenderer.Painters
foreach (var entity in _sEntityManager.GetEntities())
{
if (!_sEntityManager.HasComponent<ISpriteComponent>(entity))
if (!_sEntityManager.HasComponent<SharedSpriteComponent>(entity))
{
continue;
}