From bd077bc701eb937e577d76ebdf7575510a459bd5 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 20 Nov 2022 00:51:42 +0900 Subject: - More null checks on DungeonsGuide - Unloading Exception now wraps Errors too - Fix typos in loaders that caused weird resource Signed-off-by: syeyoung --- .../main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod/src') 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 -- cgit