From ca90ce8dcef67f99360904c320f09837c0eb7a0f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 13 Oct 2015 03:13:39 +0200 Subject: [PATCH] Fixed last opened booklet page being opened agin: could've opened nothing and not have initialized the book sometimes --- .../util/playerdata/PersistentClientData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/util/playerdata/PersistentClientData.java b/src/main/java/ellpeck/actuallyadditions/util/playerdata/PersistentClientData.java index 8dec2ff60..213057335 100644 --- a/src/main/java/ellpeck/actuallyadditions/util/playerdata/PersistentClientData.java +++ b/src/main/java/ellpeck/actuallyadditions/util/playerdata/PersistentClientData.java @@ -59,11 +59,11 @@ public class PersistentClientData{ if(currentChapter != null){ gui.openChapter(currentChapter, currentPage); } - } - else{ - gui.openIndexEntry(null, 1, true); + return; } } + //If everything fails, initialize the front page + gui.openIndexEntry(null, 1, true); } public static void setBoolean(String name, boolean bool){