Fix more useless resolves, makes entity system proxy "Deleted" not throw.

This commit is contained in:
Vera Aguilera Puerto
2021-12-08 11:10:11 +01:00
parent 9133879bd3
commit 26dcef4a11
14 changed files with 63 additions and 83 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ namespace Robust.Client.Physics
{
if (eventArgs.Map == MapId.Nullspace) return;
var mapUid = MapManager.GetMapEntityId(eventArgs.Map);
IoCManager.Resolve<IEntityManager>().AddComponent<PhysicsMapComponent>(mapUid);
EntityManager.AddComponent<PhysicsMapComponent>(mapUid);
}
}
}