Warnings fixed

This commit is contained in:
cake
2025-11-15 05:11:19 +01:00
parent b56813c1de
commit a869b369aa
5 changed files with 18 additions and 16 deletions

View File

@@ -97,7 +97,7 @@ public class PlayerPerformanceService
warningText,
pairHandler.Pair.UserData,
pairHandler.Pair.IsPaused,
pairHandler.Pair.PlayerName));
pairHandler.Pair.PlayerName ?? string.Empty));
}
return true;
@@ -148,8 +148,8 @@ public class PlayerPerformanceService
$"{pair.PlayerName} ({pair.UserData.AliasOrUID}) automatically paused",
message,
pair.UserData,
true,
pair.PlayerName));
IsPaused: true,
pair.PlayerName ?? string.Empty));
_mediator.Publish(new EventMessage(new Event(pair.PlayerName, pair.UserData, nameof(PlayerPerformanceService), EventSeverity.Warning,
$"Exceeds triangle threshold: automatically paused ({triUsage}/{config.TrisAutoPauseThresholdThousands * 1000} triangles)")));
@@ -228,8 +228,8 @@ public class PlayerPerformanceService
$"{pair.PlayerName} ({pair.UserData.AliasOrUID}) automatically paused",
message,
pair.UserData,
true,
pair.PlayerName));
IsPaused: true,
pair.PlayerName ?? string.Empty));
_mediator.Publish(new PauseMessage(pair.UserData));