Skip to content

Commit

Permalink
Merge pull request #10 from Syriiin/update-difficalcy
Browse files Browse the repository at this point in the history
Update difficalcy
  • Loading branch information
Syriiin authored May 16, 2024
2 parents 0476292 + 50bf066 commit 75d98c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public class CalculatorWorkingBeatmap : WorkingBeatmap
{
private readonly Beatmap _beatmap;

public CalculatorWorkingBeatmap(Ruleset ruleset, Stream beatmapStream, string beatmapId) : this(ruleset, ReadFromStream(beatmapStream), beatmapId) { }
public CalculatorWorkingBeatmap(Ruleset ruleset, Stream beatmapStream) : this(ruleset, ReadFromStream(beatmapStream)) { }

private CalculatorWorkingBeatmap(Ruleset ruleset, Beatmap beatmap, string beatmapId) : base(beatmap.BeatmapInfo, null)
private CalculatorWorkingBeatmap(Ruleset ruleset, Beatmap beatmap) : base(beatmap.BeatmapInfo, null)
{
_beatmap = beatmap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected override OsuCalculation CalculatePerformance(OsuScore score, object di
private CalculatorWorkingBeatmap GetWorkingBeatmap(string beatmapId)
{
using var beatmapStream = beatmapProvider.GetBeatmapStream(beatmapId);
return new CalculatorWorkingBeatmap(OsuRuleset, beatmapStream, beatmapId);
return new CalculatorWorkingBeatmap(OsuRuleset, beatmapStream);
}

private static Dictionary<HitResult, int> GetHitResults(int hitResultCount, int countMiss, int countMeh, int countOk)
Expand Down

0 comments on commit 75d98c3

Please sign in to comment.