diff --git a/Content.Server/Actions/Commands/AddActionCommand.cs b/Content.Server/Actions/Commands/AddActionCommand.cs index c2c471e0ea..5b80c92aa9 100644 --- a/Content.Server/Actions/Commands/AddActionCommand.cs +++ b/Content.Server/Actions/Commands/AddActionCommand.cs @@ -12,7 +12,6 @@ namespace Content.Server.Actions.Commands; [AdminCommand(AdminFlags.Debug)] public sealed class AddActionCommand : LocalizedEntityCommands { - [Dependency] private readonly IPrototypeManager _prototypes = default!; [Dependency] private readonly SharedActionsSystem _actions = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -38,7 +37,7 @@ public sealed class AddActionCommand : LocalizedEntityCommands return; } - if (!_prototypes.TryIndex(args[1], out var proto) || + if (!_prototypeManager.TryIndex(args[1], out var proto) || !proto.HasComponent()) { shell.WriteError(Loc.GetString("cmd-addaction-action-not-found", ("action", args[1])));