Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Dec 12, 2024
1 parent f3a128d commit 615dbc6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Entities/LogFileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<RoundInfo> roundInfoList;
Expand Down

0 comments on commit 615dbc6

Please sign in to comment.