Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
crowplexus authored Aug 17, 2024
1 parent 8145cb2 commit 30a3cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2658,8 +2658,8 @@ class PlayState extends MusicBeatState

// obtain notes that the player can hit
var plrInputNotes:Array<Note> = notes.members.filter(function(n:Note):Bool {
var canHit:Bool = !strumsBlocked[n.noteData] && n.canBeHit && n.mustPress && !n.tooLate && !n.wasGoodHit && !n.blockHit;
return n != null && canHit && !n.isSustainNote && n.noteData == key;
var canHit:Bool = n != null && !strumsBlocked[n.noteData] && n.canBeHit && n.mustPress && !n.tooLate && !n.wasGoodHit && !n.blockHit;
return canHit && !n.isSustainNote && n.noteData == key;
});
plrInputNotes.sort(sortHitNotes);

Expand Down

0 comments on commit 30a3cf2

Please sign in to comment.