Inline one HasComponent overload

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 12:08:27 +01:00
parent b835bea086
commit 72a68c06e4
3 changed files with 7 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ namespace Content.IntegrationTests.Tests
// The component may already exist if it is a mandatory component
// such as MetaData or Transform
if (entity.HasComponent(type))
if (IoCManager.Resolve<IEntityManager>().HasComponent(entity.Uid, type))
{
continue;
}
@@ -309,7 +309,7 @@ namespace Content.IntegrationTests.Tests
var component = (Component) componentFactory.GetComponent(type);
// If the entity already has this component, if it was ensured or added by another
if (entity.HasComponent(component.GetType()))
if (IoCManager.Resolve<IEntityManager>().HasComponent(entity.Uid, component.GetType()))
{
continue;
}