Kill ContainerHelpers (#20908)
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Content.Server.Guardian
|
||||
[Dependency] private readonly SharedHandsSystem _handsSystem = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly BodySystem _bodySystem = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -88,7 +89,7 @@ namespace Content.Server.Guardian
|
||||
|
||||
private void OnHostInit(EntityUid uid, GuardianHostComponent component, ComponentInit args)
|
||||
{
|
||||
component.GuardianContainer = uid.EnsureContainer<ContainerSlot>("GuardianContainer");
|
||||
component.GuardianContainer = _container.EnsureContainer<ContainerSlot>(uid, "GuardianContainer");
|
||||
_actionSystem.AddAction(uid, ref component.ActionEntity, component.Action);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user