Fix the return value being wrong.

This commit is contained in:
EliteMasterEric
2026-04-06 04:18:08 -06:00
committed by Hundrec
parent 19610c4309
commit 134984ea0b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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);