Warnings fixed
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user