aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/JarLoader.java1
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java9
2 files changed, 6 insertions, 4 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/JarLoader.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/JarLoader.java
index d428b1b1..4c2bc666 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/JarLoader.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/JarLoader.java
@@ -101,7 +101,6 @@ public class JarLoader implements IDGLoader {
dgInterface.unload();
} catch (Throwable e) {
dgInterface = null;
- ProgressStateHolder.pop();
throw new DungeonsGuideUnloadingException(toString(),e);
}
if (classLoader != null)
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 f4ec6ec0..c55d21cd 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java
@@ -343,8 +343,10 @@ public class DungeonsGuide implements DGInterface {
if (packetInjector != null) packetInjector.cleanup();
try {
- EntityPlayerSP ep = (EntityPlayerSP) Minecraft.getMinecraft().getRenderManager().livingPlayer;
- transform(ep);
+ if (Minecraft.getMinecraft().getRenderManager().livingPlayer instanceof AbstractClientPlayer) {
+ AbstractClientPlayer ep = (AbstractClientPlayer) Minecraft.getMinecraft().getRenderManager().livingPlayer;
+ transform(ep);
+ }
} catch (Exception e) {
e.printStackTrace();
}
@@ -358,7 +360,8 @@ public class DungeonsGuide implements DGInterface {
e.printStackTrace();
}
NetHandlerPlayClient netHandlerPlayClient = Minecraft.getMinecraft().getNetHandler();
- if (netHandlerPlayClient == null && (Minecraft.getMinecraft().getRenderManager().livingPlayer) != null)
+ if (netHandlerPlayClient == null && (Minecraft.getMinecraft().getRenderManager().livingPlayer) != null
+ && Minecraft.getMinecraft().getRenderManager().livingPlayer instanceof EntityPlayerSP)
netHandlerPlayClient = ((EntityPlayerSP) Minecraft.getMinecraft().getRenderManager().livingPlayer).sendQueue;
if (netHandlerPlayClient != null) {