From 8007e3d03b6d5d9052b580f8f8801b4210647543 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Fri, 1 Jan 2021 18:17:38 +0100 Subject: [PATCH] nullableeeeeeeeeeee --- .../GameObjects/Components/Recycling/RecyclableComponent.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }