mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Fixed last opened booklet page being opened agin: could've opened nothing and not have initialized the book sometimes
This commit is contained in:
parent
65692d2eed
commit
ca90ce8dce
1 changed files with 3 additions and 3 deletions
|
@ -59,11 +59,11 @@ public class PersistentClientData{
|
||||||
if(currentChapter != null){
|
if(currentChapter != null){
|
||||||
gui.openChapter(currentChapter, currentPage);
|
gui.openChapter(currentChapter, currentPage);
|
||||||
}
|
}
|
||||||
}
|
return;
|
||||||
else{
|
|
||||||
gui.openIndexEntry(null, 1, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//If everything fails, initialize the front page
|
||||||
|
gui.openIndexEntry(null, 1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setBoolean(String name, boolean bool){
|
public static void setBoolean(String name, boolean bool){
|
||||||
|
|
Loading…
Reference in a new issue