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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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.