Fixed last opened booklet page being opened agin: could've opened nothing and not have initialized the book sometimes

This commit is contained in:
Ellpeck 2015-10-13 03:13:39 +02:00
parent 65692d2eed
commit ca90ce8dce

View file

@ -59,12 +59,12 @@ public class PersistentClientData{
if(currentChapter != null){ if(currentChapter != null){
gui.openChapter(currentChapter, currentPage); gui.openChapter(currentChapter, currentPage);
} }
return;
} }
else{ }
//If everything fails, initialize the front page
gui.openIndexEntry(null, 1, true); gui.openIndexEntry(null, 1, true);
} }
}
}
public static void setBoolean(String name, boolean bool){ public static void setBoolean(String name, boolean bool){
NBTTagCompound compound = getCompound(); NBTTagCompound compound = getCompound();