Validate PresetIdCardComponent.JobName prototype ids (#21361)

This commit is contained in:
DrSmugleaf 2023-10-31 15:09:10 -07:00 committed by GitHub
parent b806722c8c
commit 3a4c40c29b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,13 @@
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Access.Components
{
[RegisterComponent]
public sealed partial class PresetIdCardComponent : Component
{
[DataField("job")]
public string? JobName;
public ProtoId<JobPrototype>? JobName;
[DataField("name")]
public string? IdName;