Fix loading a map with a ThirstComponent crashing the game (#20594)

This commit is contained in:
DrSmugleaf
2023-09-28 22:43:16 -07:00
committed by GitHub
parent 101ee6ee81
commit 1dc1c8f64b

View File

@@ -35,7 +35,7 @@ public sealed partial class ThirstComponent : Component
/// </summary>
[DataField("nextUpdateTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
[AutoNetworkedField]
public TimeSpan NextUpdateTime = TimeSpan.MaxValue;
public TimeSpan NextUpdateTime;
/// <summary>
/// The time between each update.