diff options
author | syeyoung <cyong06@naver.com> | 2021-08-28 11:42:27 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-28 11:42:27 +0900 |
commit | b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15 (patch) | |
tree | dbdd03970963cdac7690305bd8b29cd5fc1e1c87 /src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java | |
parent | 9a1c94a32122e7ec5cad922208bc8d267b41a8b3 (diff) | |
download | Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.tar.gz Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.tar.bz2 Skyblock-Dungeons-Guide-b1fb471d6e8ac2619068f4aff8c8ff0a2f125d15.zip |
- Option to disable GameSDK
- Fix disable reparty not working
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java index c8c96940..4875029d 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java @@ -114,16 +114,12 @@ public class DungeonsGuide implements DGInterface, CloseListener { MinecraftForge.EVENT_BUS.register(commandDungeonsGuide); commandReparty = new CommandReparty(); - if (FeatureRegistry.ETC_REPARTY.isEnabled()) - ClientCommandHandler.instance.registerCommand(commandReparty); - MinecraftForge.EVENT_BUS.register(commandReparty); + MinecraftForge.EVENT_BUS.register(new FeatureListener()); MinecraftForge.EVENT_BUS.register(new PacketListener()); MinecraftForge.EVENT_BUS.register(new Keybinds()); - RichPresenceManager.INSTANCE.getLastSetupCode(); - MinecraftForge.EVENT_BUS.register(RichPresenceManager.INSTANCE); MinecraftForge.EVENT_BUS.register(PartyManager.INSTANCE); MinecraftForge.EVENT_BUS.register(StaticResourceCache.INSTANCE); @@ -155,6 +151,13 @@ public class DungeonsGuide implements DGInterface, CloseListener { } catch (IOException e) { e.printStackTrace(); } + + if (FeatureRegistry.ETC_REPARTY.isEnabled()) + ClientCommandHandler.instance.registerCommand(commandReparty); + if (FeatureRegistry.DISCORD_DONOTUSE.isEnabled()) + System.setProperty("dg.safe", "true"); + MinecraftForge.EVENT_BUS.register(RichPresenceManager.INSTANCE); + ProgressManager.pop(progressbar); } @Getter |