Skip to content

Commit

Permalink
Fixed this bug
Browse files Browse the repository at this point in the history
For some reason, some charts just break at this line so I just hope this helps.
  • Loading branch information
CamLikesKirby committed Oct 23, 2024
1 parent 616349a commit 3822903
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5005,8 +5005,13 @@ class PlayState extends MusicBeatState


var strumY:Float = 0;
try {
if (!guitarSection) strumY = playerStrums.members[daNote.noteData].y;
if(!daNote.mustPress) strumY = dadStrums.members[daNote.noteData].y;
} catch(e:Dynamic) {
//trace(e);
// Alots of Null Object Refs for some reason
}
var swagWidth = 160 * Note.scales[mania];
var center:Float = strumY + swagWidth / 2;
if(daNote.isSustainNote && (daNote.mustPress || (!daNote.mustPress || (daNote.wasGoodHit || (daNote.prevNote.wasGoodHit && !daNote.canBeHit)))))
Expand Down

1 comment on commit 3822903

@CamLikesKirby
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok weirdest thing, on some charts some notes are completely invisible and unhittable by the player. Bad thing is I have no idea how to fix this.

Please sign in to comment.