From b68ca214800f5ad8810a67047d36ab67887e3e91 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Wed, 1 Dec 2021 12:38:50 +1100 Subject: [PATCH] Add typeserializer for lathe db --- Content.Shared/Lathe/SharedLatheDatabaseComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs b/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs index fbb146adc3..fa755e199a 100644 --- a/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs +++ b/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs @@ -8,6 +8,7 @@ using Robust.Shared.IoC; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; namespace Content.Shared.Lathe { @@ -16,7 +17,7 @@ namespace Content.Shared.Lathe { public override string Name => "LatheDatabase"; - [DataField("recipes")] private List _recipeIds = new(); + [DataField("recipes", customTypeSerializer: typeof(PrototypeIdListSerializer))] private List _recipeIds = new(); private readonly List _recipes = new();