diff --git a/Content.Shared/RCD/Systems/RCDSystem.cs b/Content.Shared/RCD/Systems/RCDSystem.cs index 6cce0b6204..504576216a 100644 --- a/Content.Shared/RCD/Systems/RCDSystem.cs +++ b/Content.Shared/RCD/Systems/RCDSystem.cs @@ -1,5 +1,4 @@ using Content.Shared.Administration.Logs; -using Content.Shared.Charges.Components; using Content.Shared.Charges.Systems; using Content.Shared.Construction; using Content.Shared.Database; @@ -89,11 +88,14 @@ public sealed class RCDSystem : EntitySystem if (!component.AvailablePrototypes.Contains(args.ProtoId)) return; - if (!_protoManager.HasIndex(args.ProtoId)) + if (!_protoManager.Resolve(args.ProtoId, out var prototype)) return; // Set the current RCD prototype to the one supplied component.ProtoId = args.ProtoId; + + _adminLogger.Add(LogType.RCD, LogImpact.Low, $"{args.Actor} set RCD mode to: {prototype.Mode} : {prototype.Prototype}"); + Dirty(uid, component); }