nullableeeeeeeeeeee

This commit is contained in:
Vera Aguilera Puerto
2021-01-01 18:17:38 +01:00
parent b5fd2ffd6d
commit 8007e3d03b

View File

@@ -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
/// <summary>
/// The prototype that will be spawned on recycle.
/// </summary>
private string _prototype;
private string? _prototype;
/// <summary>
/// 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);
}