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:
parent
cdd93d8e48
commit
35516cb8f9
|
@ -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