]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix sericulture (#20673)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 2 Oct 2023 07:51:27 +0000 (18:51 +1100)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 07:51:27 +0000 (18:51 +1100)
Content.Shared/Sericulture/SericultureComponent.cs

index 23143f5ac43d27b6ead0c717a141c97f0bf5a3ae..c98a2171b0d295d715b764e54f99676a0a534eff 100644 (file)
@@ -23,18 +23,18 @@ public sealed partial class SericultureComponent : Component
     /// <summary>
     /// What will be produced at the end of the action.
     /// </summary>
-    [DataField("entityProduced", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
+    [DataField(required: true)]
     [ViewVariables(VVAccess.ReadWrite)]
     [AutoNetworkedField]
-    public string EntityProduced = string.Empty;
+    public EntProtoId EntityProduced;
 
     /// <summary>
     /// The entity needed to actually preform sericulture. This will be granted (and removed) upon the entity's creation.
     /// </summary>
-    [DataField("action", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
+    [DataField(required: true)]
     [ViewVariables(VVAccess.ReadWrite)]
     [AutoNetworkedField]
-    public string Action = string.Empty;
+    public EntProtoId Action;
 
     [AutoNetworkedField]
     [DataField("actionEntity")]