Fix server crash for name identifiers (#15584)
This commit is contained in:
@@ -8,4 +8,10 @@ public sealed class NameIdentifierComponent : Component
|
||||
{
|
||||
[DataField("group", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<NameIdentifierGroupPrototype>))]
|
||||
public string Group = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The randomly generated ID for this entity.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("identifier")]
|
||||
public int Identifier = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user