Skip to content

Commit

Permalink
fix CL edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku committed Jul 15, 2024
1 parent 749f505 commit 8aae8a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public static async Task<BeatmapStore> CreateAsync(MySqlConnection connection, M
{
// database attributes are stored using the default mod configurations
// if we want to support mods with non-default configurations (i.e non-1.5x rates on DT/NC)
// or non-legacy mods which aren't populated into the database
// or non-legacy mods which aren't populated into the database (with exception to CL)
// then we must calculate difficulty attributes in real-time.
bool mustUseRealtimeDifficulty = mods.Any(m => !m.UsesDefaultConfiguration || !isLegacyMod(m));
bool mustUseRealtimeDifficulty = mods.Any(m => !m.UsesDefaultConfiguration || (!isLegacyMod(m) && m is not ModClassic));

if (always_use_realtime_difficulty_calculation || mustUseRealtimeDifficulty)
{
Expand Down

0 comments on commit 8aae8a2

Please sign in to comment.