mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Prevented Crash when the manual was open during a world crash or kick
This commit is contained in:
parent
5e5173cf54
commit
b24cd48984
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ public class PersistentClientData{
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getName(){
|
private static String getName(){
|
||||||
return Minecraft.getMinecraft().isIntegratedServerRunning() ? Minecraft.getMinecraft().getIntegratedServer().getFolderName() : Minecraft.getMinecraft().func_147104_D().serverIP;
|
if(Minecraft.getMinecraft().theWorld != null){
|
||||||
|
return Minecraft.getMinecraft().isIntegratedServerRunning() ? Minecraft.getMinecraft().getIntegratedServer().getFolderName() : Minecraft.getMinecraft().func_147104_D().serverIP;
|
||||||
|
}
|
||||||
|
return "Invalid";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static NBTTagCompound getCompoundForWorld(NBTTagCompound mainCompound){
|
private static NBTTagCompound getCompoundForWorld(NBTTagCompound mainCompound){
|
||||||
|
|
Loading…
Reference in a new issue