Don't cache the parent screen!

This commit is contained in:
Ellpeck 2016-11-15 19:28:51 +01:00
parent 07417dc255
commit a94a49f9c9

View file

@ -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;