diff --git a/Content.Server/GameObjects/Components/Recycling/RecyclableComponent.cs b/Content.Server/GameObjects/Components/Recycling/RecyclableComponent.cs index 2a8617573f..ccd69fb4b6 100644 --- a/Content.Server/GameObjects/Components/Recycling/RecyclableComponent.cs +++ b/Content.Server/GameObjects/Components/Recycling/RecyclableComponent.cs @@ -1,3 +1,4 @@ +#nullable enable using System; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; @@ -10,7 +11,7 @@ namespace Content.Server.GameObjects.Components.Recycling /// /// The prototype that will be spawned on recycle. /// - private string _prototype; + private string? _prototype; /// /// The amount of things that will be spawned on recycle. @@ -29,7 +30,7 @@ namespace Content.Server.GameObjects.Components.Recycling public override void ExposeData(ObjectSerializer serializer) { base.ExposeData(serializer); - serializer.DataField(ref _prototype, "prototype", string.Empty); + serializer.DataField(ref _prototype, "prototype", null); serializer.DataField(ref _safe, "safe", true); serializer.DataField(ref _amount, "amount", 1); }