discord rpc ignore unfocus if autopause disabled

This commit is contained in:
MtH
2021-04-08 18:45:59 +02:00
parent cdd93d8e48
commit 35516cb8f9
+2 -2
View File
@@ -1413,7 +1413,7 @@ class PlayState extends MusicBeatState
#if discord_rpc
override public function onFocus():Void
{
if (health > 0 && !paused)
if (health > 0 && !paused && FlxG.autoPause)
{
if (Conductor.songPosition > 0.0)
{
@@ -1430,7 +1430,7 @@ class PlayState extends MusicBeatState
override public function onFocusLost():Void
{
if (health > 0 && !paused)
if (health > 0 && !paused && FlxG.autoPause)
{
DiscordClient.changePresence(detailsPausedText, SONG.song + " (" + storyDifficultyText + ")", iconRPC);
}