diff options
author | syeyoung <cyong06@naver.com> | 2021-03-03 00:06:40 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-03-03 00:06:40 +0900 |
commit | 55e475a31c722a3e9e3bd3216bc0e0d396b6f359 (patch) | |
tree | e4401081a5838592edcf0dd1f7c7572862616296 /src/main/java/kr/syeyoung/dungeonsguide/e.java | |
parent | 0b9a21c54720ca8a3c271c2dacbe98df9dac03b2 (diff) | |
download | Skyblock-Dungeons-Guide-55e475a31c722a3e9e3bd3216bc0e0d396b6f359.tar.gz Skyblock-Dungeons-Guide-55e475a31c722a3e9e3bd3216bc0e0d396b6f359.tar.bz2 Skyblock-Dungeons-Guide-55e475a31c722a3e9e3bd3216bc0e0d396b6f359.zip |
temp
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/e.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/e.java | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/e.java b/src/main/java/kr/syeyoung/dungeonsguide/e.java index 98fac826..5bc3f0d7 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/e.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/e.java @@ -1,5 +1,7 @@ package kr.syeyoung.dungeonsguide; +import com.jagrosh.discordipc.entities.RichPresence; +import com.jagrosh.discordipc.exceptions.NoDiscordClientException; import kr.syeyoung.dungeonsguide.commands.*; import kr.syeyoung.dungeonsguide.config.Config; import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry; @@ -95,19 +97,7 @@ public class e implements c, CloseListener { progressbar.step("Downloading Roomdatas"); try { DungeonRoomInfoRegistry.loadAll(configDir); - } catch (BadPaddingException e) { - e.printStackTrace(); - } catch (InvalidAlgorithmParameterException e) { - e.printStackTrace(); - } catch (NoSuchAlgorithmException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } catch (IllegalBlockSizeException e) { - e.printStackTrace(); - } catch (NoSuchPaddingException e) { - e.printStackTrace(); - } catch (InvalidKeyException e) { + } catch (BadPaddingException | InvalidKeyException | NoSuchPaddingException | IllegalBlockSizeException | IOException | NoSuchAlgorithmException | InvalidAlgorithmParameterException e) { e.printStackTrace(); } Keybinds.register(); @@ -119,6 +109,12 @@ public class e implements c, CloseListener { } catch (Exception e) { throw new RuntimeException(e); } + try { + RichPresenceManager.INSTANCE.setup(); + } catch (NoDiscordClientException e) { + e.printStackTrace(); + } + MinecraftForge.EVENT_BUS.register(RichPresenceManager.INSTANCE); progressbar.step("Loading Config"); |