Fix save files being last played on Jan 1st Year 1 A.D.

Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
Ritchie Frodomar 2024-07-28 21:32:05 -04:00
parent f899ddaca4
commit 98e2dab670

View file

@ -6,6 +6,7 @@ using Microsoft.Xna.Framework;
using SociallyDistant.Architecture;
using SociallyDistant.Core;
using SociallyDistant.Core.Core;
using SociallyDistant.Core.Core.WorldData.Data;
using SociallyDistant.Core.Modules;
using SociallyDistant.Core.Shell;
using SociallyDistant.Core.Shell.Windowing;
@ -157,6 +158,7 @@ Would you like to enable tutorials for this account?";
playerInfo.Comment = "Prologue";
playerInfo.UserName = nameEntry.Value.ToUnix();
playerInfo.PlayerGender = (Gender)genderDropdown.SelectedIndex;
playerInfo.LastPlayed = DateTime.UtcNow;
WorldManager.Instance.WipeWorld();