From 50fbf367e523a57acf43fc20e3f3bcac967669be Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 25 Jan 2023 17:54:59 +0900 Subject: - ignore no discord exception Signed-off-by: syeyoung --- .../syeyoung/dungeonsguide/mod/discord/DiscordIntegrationManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/src/main/java/kr/syeyoung') 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(); } -- cgit