aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-25 17:54:59 +0900
committersyeyoung <cyoung06@naver.com>2023-01-25 17:54:59 +0900
commit50fbf367e523a57acf43fc20e3f3bcac967669be (patch)
tree5d21fe79e2a011361b7f525840744135756e89db
parent66115cf3a31c9dfc005f6069dd206aade4d48428 (diff)
downloadSkyblock-Dungeons-Guide-50fbf367e523a57acf43fc20e3f3bcac967669be.tar.gz
Skyblock-Dungeons-Guide-50fbf367e523a57acf43fc20e3f3bcac967669be.tar.bz2
Skyblock-Dungeons-Guide-50fbf367e523a57acf43fc20e3f3bcac967669be.zip
- ignore no discord exception
Signed-off-by: syeyoung <cyoung06@naver.com>
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java
index 35684242..f25515ca 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java
@@ -23,6 +23,7 @@ import com.jagrosh.discordipc.IPCListener;
import com.jagrosh.discordipc.entities.Callback;
import com.jagrosh.discordipc.entities.Packet;
import com.jagrosh.discordipc.entities.pipe.PipeStatus;
+import com.jagrosh.discordipc.exceptions.NoDiscordClientException;
import kr.syeyoung.dungeonsguide.mod.DungeonsGuide;
import kr.syeyoung.dungeonsguide.mod.SkyblockStatus;
import kr.syeyoung.dungeonsguide.mod.dungeon.DungeonContext;
@@ -125,6 +126,7 @@ public class DiscordIntegrationManager implements IPCListener {
ipcClient.send(new JSONObject().put("cmd", "GET_RELATIONSHIPS"), new Callback(this::onRelationshipLoad));
ipcClient.setListener(this);
System.out.println("Connecting");
+ } catch (NoDiscordClientException ignored) {
} catch (Throwable t) {
t.printStackTrace();
}