1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-09 16:24:42 +00:00

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

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