Fix build.

I HATE STATIC I HATE STATIC I HATE STATIC
This commit is contained in:
Vera Aguilera Puerto
2021-12-08 13:07:24 +01:00
parent c8b65be747
commit 0a71b62305
7 changed files with 32 additions and 23 deletions

View File

@@ -82,10 +82,12 @@ namespace Content.Shared.Movement.EntitySystems
var ent = session?.AttachedEntity;
if (ent == null || !EntityManager.EntityExists(ent.Value))
var entMan = IoCManager.Resolve<IEntityManager>();
if (ent == null || !entMan.EntityExists(ent.Value))
return false;
if (!EntityManager.TryGetComponent(ent.Value, out T? comp))
if (!entMan.TryGetComponent(ent.Value, out T? comp))
return false;
component = comp;