From ee89a5f29a3d6076158369a8a20dccba904169dd Mon Sep 17 00:00:00 2001 From: MtH Date: Thu, 8 Apr 2021 18:45:59 +0200 Subject: [PATCH] discord rpc ignore unfocus if autopause disabled --- source/PlayState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 5efc86dc2..c9dd54da2 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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); }