From 615dbc622629a81320a5a03064cde704b98c049c Mon Sep 17 00:00:00 2001 From: eunma Date: Thu, 12 Dec 2024 12:05:01 +0900 Subject: [PATCH] Bug fix --- Entities/LogFileWatcher.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Entities/LogFileWatcher.cs b/Entities/LogFileWatcher.cs index 0d237da6..4c61e468 100644 --- a/Entities/LogFileWatcher.cs +++ b/Entities/LogFileWatcher.cs @@ -701,8 +701,8 @@ private void UpdateServerConnectionLog(string session, string show) { private void UpdatePersonalBestLog(RoundInfo info) { if (info.PrivateLobby || (!info.IsCasualShow && info.UseShareCode) || !info.Finish.HasValue) { return; } - if (info.IsCasualShow && string.Equals(info.ShowNameId, "user_creative_race_round")) { - if (string.IsNullOrEmpty(info.Name)) { return; } + if (info.IsCasualShow) { + if (string.IsNullOrEmpty(info.Name) || !string.Equals(info.CreativeGameModeId, "GAMEMODE_GAUNTLET", StringComparison.OrdinalIgnoreCase)) { return; } if (!this.StatsForm.ExistsPersonalBestLog(info.Finish.Value)) { string levelName = string.IsNullOrEmpty(info.CreativeTitle) ? this.StatsForm.GetUserCreativeLevelTitle(info.Name) : info.CreativeTitle; @@ -718,9 +718,7 @@ private void UpdatePersonalBestLog(RoundInfo info) { } } else { string levelId = info.VerifiedName(); - if (!this.StatsForm.StatLookup.TryGetValue(levelId, out LevelStats currentLevel) || currentLevel.Type != LevelType.Race) { - return; - } + if (!this.StatsForm.StatLookup.TryGetValue(levelId, out LevelStats currentLevel) || currentLevel.Type != LevelType.Race) { return; } if (!this.StatsForm.ExistsPersonalBestLog(info.Finish.Value)) { List roundInfoList;