This commit is contained in:
Shadows_of_Fire 2018-05-05 03:49:46 -04:00
parent 7608a3af3d
commit 047c69473b

View file

@ -145,6 +145,7 @@ public abstract class GuiBooklet extends GuiBookletBase{
//Don't cache the parent GUI, otherwise it opens again when you close the cached book!
this.previousScreen = null;
if(this.mc.player == null) return;
PlayerSave data = PlayerData.getDataFromPlayer(this.mc.player);
data.lastOpenBooklet = this;