diff options
author | syeyoung <cyoung06@naver.com> | 2022-11-20 00:51:42 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2022-11-20 00:51:42 +0900 |
commit | bd077bc701eb937e577d76ebdf7575510a459bd5 (patch) | |
tree | dd0bef27c4634f6b0011990d16a1624f125bffac /mod/src/main/java/kr/syeyoung | |
parent | 9c169734cd960705eb70c052e51f9fab2ab74ab6 (diff) | |
download | Skyblock-Dungeons-Guide-bd077bc701eb937e577d76ebdf7575510a459bd5.tar.gz Skyblock-Dungeons-Guide-bd077bc701eb937e577d76ebdf7575510a459bd5.tar.bz2 Skyblock-Dungeons-Guide-bd077bc701eb937e577d76ebdf7575510a459bd5.zip |
- More null checks on DungeonsGuide
- Unloading Exception now wraps Errors too
- Fix typos in loaders that caused weird resource
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung')
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java | 8 |
1 files changed, 6 insertions, 2 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 fad86a11..4864fa53 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java @@ -338,7 +338,7 @@ public class DungeonsGuide implements DGInterface { e.printStackTrace(); } NetHandlerPlayClient netHandlerPlayClient = Minecraft.getMinecraft().getNetHandler(); - if (netHandlerPlayClient == null) + if (netHandlerPlayClient == null && (Minecraft.getMinecraft().getRenderManager().livingPlayer) != null) netHandlerPlayClient = ((EntityPlayerSP) Minecraft.getMinecraft().getRenderManager().livingPlayer).sendQueue; if (netHandlerPlayClient != null) { @@ -401,7 +401,11 @@ public class DungeonsGuide implements DGInterface { } catch (InterruptedException e) { } THREAD_GROUP.destroy(); - GameSDK.cleanup(); + try { + GameSDK.cleanup(); + } catch (Exception e) { + e.printStackTrace(); + } } @Override |