From c0b96494506726803313d348bb038698b828e782 Mon Sep 17 00:00:00 2001 From: CharlesCatYT Date: Mon, 26 Feb 2024 21:06:18 -0500 Subject: [PATCH] stupiddddddddddddddd --- source/states/CharacterSelectionState.hx | 2 +- source/states/FreeplayState.hx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/states/CharacterSelectionState.hx b/source/states/CharacterSelectionState.hx index f0a0e98..7123ca4 100644 --- a/source/states/CharacterSelectionState.hx +++ b/source/states/CharacterSelectionState.hx @@ -57,7 +57,7 @@ class CharacterSelectionState extends MusicBeatState { var camHUD:FlxCamera; override function create() { - #if desktop DiscordClient.changePresence('Selecting a Character'); #end + #if desktop DiscordClient.changePresence('Selecting a Character', null); #end persistentUpdate = true; diff --git a/source/states/FreeplayState.hx b/source/states/FreeplayState.hx index ba15de4..19c189f 100644 --- a/source/states/FreeplayState.hx +++ b/source/states/FreeplayState.hx @@ -17,6 +17,8 @@ import substates.ResetScoreSubState; import flixel.math.FlxMath; import flixel.ui.FlxBar; import flixel.util.FlxStringUtil; +import flixel.util.FlxDestroyUtil; +import tjson.TJSON as Json; @:access(flixel.sound.FlxSound) @@ -564,7 +566,7 @@ class FreeplayState extends MusicBeatState { override function beatHit() { - if (player.playingMusic && !player.paused) { + if (player.playingMusic && player.playing) { var icon:HealthIcon = iconArray[curSelected]; icon.scale.set(1.2, 1.2); icon.updateHitbox();