diff options
author | syeyoung <cyong06@naver.com> | 2021-05-01 14:36:48 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-01 14:36:48 +0900 |
commit | 4d858161e0321c479927e7f28bf516189781914e (patch) | |
tree | 42ee5394f90afec98acdd74fbedea7971a0b195a /src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java | |
parent | c60485da3704c1ac91f614f8020c79f5a92a599e (diff) | |
download | Skyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.tar.gz Skyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.tar.bz2 Skyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.zip |
all tested.
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java b/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java index 7a2f43e1..ec7a9ce5 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/RichPresenceManager.java @@ -60,7 +60,7 @@ public class RichPresenceManager implements Runnable { public void updatePresence() { - if (!skyblockStatus.isOnHypixel() || !FeatureRegistry.ADVANCED_RICHPRESENCE.isEnabled()) { + if (!skyblockStatus.isOnHypixel() || !FeatureRegistry.ADVANCED_RICHPRESENCE.isEnabled() || (!skyblockStatus.isOnSkyblock() && FeatureRegistry.ADVANCED_RICHPRESENCE.<Boolean>getParameter("disablenotskyblock").getValue())) { DiscordRPC.discordClearPresence(); } else { DiscordRichPresence.Builder richPresenceBuilder = new DiscordRichPresence.Builder(skyblockStatus.getDungeonName()); |