Validate prototype ids in c# fields (#18224)
This commit is contained in:
@@ -404,7 +404,7 @@ namespace Content.Client.Construction.UI
|
||||
return;
|
||||
}
|
||||
|
||||
if (_selected == null || _selected.Mirror == String.Empty)
|
||||
if (_selected == null || _selected.Mirror == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ public sealed class DecalPlacementSystem : EntitySystem
|
||||
|
||||
public sealed class PlaceDecalActionEvent : WorldTargetActionEvent
|
||||
{
|
||||
[DataField("decalId", customTypeSerializer:typeof(PrototypeIdSerializer<DecalPrototype>))]
|
||||
[DataField("decalId", customTypeSerializer:typeof(PrototypeIdSerializer<DecalPrototype>), required:true)]
|
||||
public string DecalId = string.Empty;
|
||||
|
||||
[DataField("color")]
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Salvage;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Client.Salvage;
|
||||
|
||||
[NetworkedComponent, RegisterComponent]
|
||||
public sealed class SalvageMagnetComponent : SharedSalvageMagnetComponent {}
|
||||
|
||||
Reference in New Issue
Block a user