Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Mar 28, 2024
1 parent 6c7f1df commit a6eadbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Threading.Tasks;
using HarmonyLib;
using JetBrains.Annotations;
using Osu.Performance;
Expand Down Expand Up @@ -52,7 +53,7 @@ private static void After(
var CurrentScore = Ruleset.CurrentScore.Get(__instance);
var MaxCombo = Score.MaxCombo.Get(CurrentScore);

PerformanceCalculator.Calculator?.AddJudgement(judgement, (uint)MaxCombo);
Task.Run(() => PerformanceCalculator.Calculator?.AddJudgement(judgement, (uint)MaxCombo));
}

[UsedImplicitly]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void UpdatePerformanceCounter(double pp)
if (!PerformanceCounter.TryGetTarget(out var sprite) || sprite == null)
return;

// Technically this should be run with "GameBase.Scheduler.AddOnce(() => ...)" but it works anyways, so...
pText.SetText.Invoke(sprite, [$"{pp:00.0}pp"]);
}
catch (Exception e)
Expand Down

0 comments on commit a6eadbb

Please sign in to comment.