diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-06 13:53:08 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-06 13:53:08 +0900 |
commit | f47064b5ed44875dbf2dd44c18de079c760b10d8 (patch) | |
tree | 29f554d89c21955e3fa72463cfc63adf83a9f535 /mod/src | |
parent | c7a5bb1d66b385d4ce2b13cdd3cd37d569ae5d2e (diff) | |
download | Skyblock-Dungeons-Guide-f47064b5ed44875dbf2dd44c18de079c760b10d8.tar.gz Skyblock-Dungeons-Guide-f47064b5ed44875dbf2dd44c18de079c760b10d8.tar.bz2 Skyblock-Dungeons-Guide-f47064b5ed44875dbf2dd44c18de079c760b10d8.zip |
- Fix parallel universe not working
- Fix dg not unloading properly
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java index 509fbd79..e7eb4bd6 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java @@ -261,6 +261,10 @@ public class DungeonsGuide implements DGInterface { Minecraft.getMinecraft().refreshResources(); + + // Fix Parallel universe not working when player joins hypickle before dg loads + if (Minecraft.getMinecraft().getNetHandler() != null) + Minecraft.getMinecraft().getNetHandler().getNetworkManager().channel().pipeline().addBefore("packet_handler", "dg_packet_handler", packetInjector); } // hotswap fails in dev env due to intellij auto log collection or smth. it holds ref to stacktrace. @@ -312,7 +316,7 @@ public class DungeonsGuide implements DGInterface { } - Set<ICommand> commands = ReflectionHelper.getPrivateValue(CommandHandler.class, ClientCommandHandler.instance, "commandSet"); + Set<ICommand> commands = ReflectionHelper.getPrivateValue(CommandHandler.class, ClientCommandHandler.instance, "commandSet","field_71561_b","field_6467","c"); for (ICommand registeredCommand : registeredCommands) { ClientCommandHandler.instance.getCommands().remove(registeredCommand.getCommandName()); |