Replace IEntityManager resolves in systems for cached EntityManager
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
{
|
||||
protected override int? GetCount(ContainerModifiedMessage msg, ItemCounterComponent itemCounter)
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(msg.Container.Owner, out ServerStorageComponent? component)
|
||||
if (!EntityManager.TryGetComponent(msg.Container.Owner, out ServerStorageComponent? component)
|
||||
|| component.StoredEntities == null)
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user