diff --git a/Content.Shared/GameObjects/Components/Tag/TagComponent.cs b/Content.Shared/GameObjects/Components/Tag/TagComponent.cs index 3334607495..03f1c9cecc 100644 --- a/Content.Shared/GameObjects/Components/Tag/TagComponent.cs +++ b/Content.Shared/GameObjects/Components/Tag/TagComponent.cs @@ -8,6 +8,7 @@ using Robust.Shared.Players; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set; using Robust.Shared.ViewVariables; namespace Content.Shared.GameObjects.Components.Tag @@ -18,7 +19,7 @@ namespace Content.Shared.GameObjects.Components.Tag public override string Name => "Tag"; [ViewVariables] - [DataField("tags")] + [DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] private readonly HashSet _tags = new(); public IReadOnlySet Tags => _tags;