Skip to content

Commit

Permalink
Fix keycount not being changeable
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Mar 20, 2024
1 parent 5965468 commit 261b38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluXis.Game/Screens/Edit/EditorMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public void SetKeyMode(int mode)

public bool CanChangeTo(int mode)
{
var highestLane = MapInfo.HitObjects.MaxBy(o => o.Lane).Lane;
highestLane = Math.Max(highestLane, MapEvents.LaneSwitchEvents.MaxBy(o => o.Count).Count);
var highestLane = MapInfo.HitObjects.MaxBy(o => o.Lane)?.Lane ?? 0;
highestLane = Math.Max(highestLane, MapEvents.LaneSwitchEvents.MaxBy(o => o.Count)?.Count ?? 0);
return highestLane <= mode;
}

Expand Down

0 comments on commit 261b38b

Please sign in to comment.