From a94a49f9c972d13771e4cba01539501add3d26be Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 15 Nov 2016 19:28:51 +0100 Subject: [PATCH] Don't cache the parent screen! --- .../ellpeck/actuallyadditions/mod/booklet/gui/GuiBooklet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiBooklet.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiBooklet.java index cbd797186..ccae3944a 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiBooklet.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiBooklet.java @@ -115,6 +115,9 @@ public abstract class GuiBooklet extends GuiBookletBase{ public void onGuiClosed(){ super.onGuiClosed(); + //Don't cache the parent GUI, otherwise it opens again when you close the cached book! + this.previousScreen = null; + PlayerSave data = PlayerData.getDataFromPlayer(this.mc.thePlayer); boolean change = false;