Skip to content

Commit

Permalink
TradeCrateDestination: use string, validate proto
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Dec 23, 2024
1 parent 563932c commit 7b42b14
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Content.Server/_NF/Trade/TradeCrateDestinationComponent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Content.Shared._NF.Trade;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;

namespace Content.Server._NF.Trade;

Expand All @@ -10,6 +9,6 @@ namespace Content.Server._NF.Trade;
[RegisterComponent]
public sealed partial class TradeCrateDestinationComponent : Component
{
[DataField]
public ProtoId<TradeCrateDestinationPrototype> DestinationProto;
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<TradeCrateDestinationPrototype>))]
public string DestinationProto;
}

0 comments on commit 7b42b14

Please sign in to comment.