EntityStorage ECS (#9291)
This commit is contained in:
@@ -6,6 +6,7 @@ using Robust.Shared.Player;
|
||||
using Robust.Shared.Containers;
|
||||
using Content.Server.Popups;
|
||||
using Content.Shared.Movement.Events;
|
||||
using Content.Server.Storage.EntitySystems;
|
||||
using Content.Shared.Popups;
|
||||
|
||||
namespace Content.Server.Resist;
|
||||
@@ -15,6 +16,7 @@ public sealed class ResistLockerSystem : EntitySystem
|
||||
[Dependency] private readonly DoAfterSystem _doAfterSystem = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly LockSystem _lockSystem = default!;
|
||||
[Dependency] private readonly EntityStorageSystem _entityStorage = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -74,7 +76,7 @@ public sealed class ResistLockerSystem : EntitySystem
|
||||
_lockSystem.Unlock(uid, ev.User, lockComponent);
|
||||
|
||||
component.CancelToken = null;
|
||||
storageComponent.TryOpenStorage(ev.User);
|
||||
_entityStorage.TryOpenStorage(ev.User, storageComponent.Owner);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user