From 3822903d1685bd1c499b626b7278cca645551663 Mon Sep 17 00:00:00 2001 From: Cam the Kirby <92703353+CamtheKirby@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:11:31 -0500 Subject: [PATCH] Fixed this bug For some reason, some charts just break at this line so I just hope this helps. --- source/PlayState.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/PlayState.hx b/source/PlayState.hx index 357ae73..ea5289d 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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)))))