discord rpc ignore unfocus if autopause disabled

This commit is contained in:
MtH 2021-04-08 18:45:59 +02:00
parent a36dd5d613
commit ee89a5f29a
1 changed files with 2 additions and 2 deletions

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);
}