From f3e751ba15b0feb791092a0900c4a2d204828358 Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:37:22 -0500 Subject: [PATCH] Update Character.hx --- source/game/Character.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/Character.hx b/source/game/Character.hx index 121f3c6149..7f08c9c51c 100644 --- a/source/game/Character.hx +++ b/source/game/Character.hx @@ -283,7 +283,7 @@ class Character extends FlxSprite { barColor = FlxColor.fromRGB(config.barColor[0], config.barColor[1], config.barColor[2]); var localKeyCount; - if(PlayState.SONG.playerKeyCount != null && PlayState.SONG.keyCount != null ){ + if(FlxG.state = new PlayState()){ localKeyCount = isPlayer ? PlayState.SONG.playerKeyCount : PlayState.SONG.keyCount; } else{