aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/java/kr')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java8
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