mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fix booklet saving & opening of intro page
This commit is contained in:
parent
ca90ce8dce
commit
1a1c04d85a
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue