Belgabor / Magicality

Magicality the Next Dimension, a modpack for Minecraft
1 stars 1 forks source link

[SMP][dev] Opening the lore book crashes MC if the end wasn't visited #3

Closed Belgabor closed 9 years ago

Belgabor commented 9 years ago

In SMP opening the lore book crashes the client if no one has been to the end. Not sure if this appklies to other dimensions as well, we currently only have pages linked to the overworld and the end.

Stacktrace:

java.lang.NullPointerException: Rendering screen
at net.minecraftforge.common.DimensionManager.getProvider(DimensionManager.java:155)
at dmillerw.lore.common.lore.LoreLoader.getDimensionName(LoreLoader.java:87)
at dmillerw.lore.common.lore.LoreLoader.getLoreTag(LoreLoader.java:95)
at dmillerw.lore.client.gui.GuiJournal.func_73863_a(GuiJournal.java:277)
at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:990)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
dmillerw commented 9 years ago

Should be fixed now. @haighyorkie