mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
discord rpc ignore unfocus if autopause disabled
This commit is contained in:
parent
cdd93d8e48
commit
35516cb8f9
1 changed files with 2 additions and 2 deletions
|
@ -1413,7 +1413,7 @@ class PlayState extends MusicBeatState
|
||||||
#if discord_rpc
|
#if discord_rpc
|
||||||
override public function onFocus():Void
|
override public function onFocus():Void
|
||||||
{
|
{
|
||||||
if (health > 0 && !paused)
|
if (health > 0 && !paused && FlxG.autoPause)
|
||||||
{
|
{
|
||||||
if (Conductor.songPosition > 0.0)
|
if (Conductor.songPosition > 0.0)
|
||||||
{
|
{
|
||||||
|
@ -1430,7 +1430,7 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
override public function onFocusLost():Void
|
override public function onFocusLost():Void
|
||||||
{
|
{
|
||||||
if (health > 0 && !paused)
|
if (health > 0 && !paused && FlxG.autoPause)
|
||||||
{
|
{
|
||||||
DiscordClient.changePresence(detailsPausedText, SONG.song + " (" + storyDifficultyText + ")", iconRPC);
|
DiscordClient.changePresence(detailsPausedText, SONG.song + " (" + storyDifficultyText + ")", iconRPC);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue