Fix sericulture (#20673)

This commit is contained in:
metalgearsloth
2023-10-02 18:51:27 +11:00
committed by GitHub
parent c13f6ffacc
commit 9b06e52b33

View File

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