Fix booklet saving & opening of intro page

This commit is contained in:
Ellpeck 2015-10-13 03:43:41 +02:00
parent ca90ce8dce
commit 1a1c04d85a
2 changed files with 3 additions and 2 deletions

View file

@ -368,7 +368,8 @@ public class GuiBooklet extends GuiScreen{
this.currentChapter = null;
this.currentIndexEntry = null;
if(!PersistentClientData.getBoolean("BookAlreadyOpened")){
//So that the First Page will still open if used via something like NEI before
if(this.parentScreen == null && !PersistentClientData.getBoolean("BookAlreadyOpened")){
this.openIndexEntry(InitBooklet.chapterIntro.entry, 1, true);
this.openChapter(InitBooklet.chapterIntro, null);

View file

@ -75,7 +75,7 @@ public class PersistentClientData{
}
private static String getName(String name){
return (Minecraft.getMinecraft().isIntegratedServerRunning() ? Minecraft.getMinecraft().getIntegratedServer().getWorldName() : Minecraft.getMinecraft().func_147104_D().serverIP)+"-"+name;
return (Minecraft.getMinecraft().isIntegratedServerRunning() ? Minecraft.getMinecraft().getIntegratedServer().getFolderName() : Minecraft.getMinecraft().func_147104_D().serverIP)+"-"+name;
}
public static boolean getBoolean(String name){