Fix polymorphed null error (#11571)

This commit is contained in:
Leon Friedrich
2022-10-02 07:16:55 +13:00
committed by GitHub
parent 8389bde2c0
commit d43ed3210c
3 changed files with 43 additions and 23 deletions

View File

@@ -10,7 +10,8 @@ namespace Content.Server.Polymorph.Components
/// The polymorph prototype, used to track various information
/// about the polymorph
/// </summary>
public PolymorphPrototype Prototype = default!;
[DataField("prototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<PolymorphPrototype>))]
public string Prototype = string.Empty;
/// <summary>
/// The original entity that the player will revert back into