diff --git a/source/funkin/ui/MusicBeatState.hx b/source/funkin/ui/MusicBeatState.hx index f505b1bf0..f365321bd 100644 --- a/source/funkin/ui/MusicBeatState.hx +++ b/source/funkin/ui/MusicBeatState.hx @@ -223,7 +223,7 @@ class MusicBeatState extends FlxTransitionableState implements IEventHandler public function stepHit():Bool { - if (this.subState != null && !persistentUpdate) return; + if (this.subState != null && !persistentUpdate) return false; var event = new SongTimeScriptEvent(SONG_STEP_HIT, conductorInUse.currentBeat, conductorInUse.currentStep); @@ -236,7 +236,7 @@ class MusicBeatState extends FlxTransitionableState implements IEventHandler public function beatHit():Bool { - if (this.subState != null && !persistentUpdate) return; + if (this.subState != null && !persistentUpdate) return false; var event = new SongTimeScriptEvent(SONG_BEAT_HIT, conductorInUse.currentBeat, conductorInUse.currentStep); diff --git a/source/funkin/ui/MusicBeatSubState.hx b/source/funkin/ui/MusicBeatSubState.hx index b67055c6e..0e263b1d5 100644 --- a/source/funkin/ui/MusicBeatSubState.hx +++ b/source/funkin/ui/MusicBeatSubState.hx @@ -195,7 +195,7 @@ class MusicBeatSubState extends FlxSubState implements IEventHandler */ public function stepHit():Bool { - if (this.subState != null && !persistentUpdate) return; + if (this.subState != null && !persistentUpdate) return false; var event:ScriptEvent = new SongTimeScriptEvent(SONG_STEP_HIT, conductorInUse.currentBeat, conductorInUse.currentStep); @@ -213,7 +213,7 @@ class MusicBeatSubState extends FlxSubState implements IEventHandler */ public function beatHit():Bool { - if (this.subState != null && !persistentUpdate) return; + if (this.subState != null && !persistentUpdate) return false; var event:ScriptEvent = new SongTimeScriptEvent(SONG_BEAT_HIT, conductorInUse.currentBeat, conductorInUse.currentStep);