Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
|
||||
protected override int? GetCount(ContainerModifiedMessage msg, ItemCounterComponent itemCounter)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(msg.Container.Owner, out StorageComponent? component))
|
||||
if (!TryComp(msg.Container.Owner, out StorageComponent? component))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user