nullableeeeeeeeeeee
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#nullable enable
|
||||||
using System;
|
using System;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization;
|
using Robust.Shared.Serialization;
|
||||||
@@ -10,7 +11,7 @@ namespace Content.Server.GameObjects.Components.Recycling
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The prototype that will be spawned on recycle.
|
/// The prototype that will be spawned on recycle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private string _prototype;
|
private string? _prototype;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The amount of things that will be spawned on recycle.
|
/// 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)
|
public override void ExposeData(ObjectSerializer serializer)
|
||||||
{
|
{
|
||||||
base.ExposeData(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 _safe, "safe", true);
|
||||||
serializer.DataField(ref _amount, "amount", 1);
|
serializer.DataField(ref _amount, "amount", 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user