From c471f19f873da81285b5ef24e395af17482f26ba Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 8 Nov 2016 23:52:31 +0100 Subject: [PATCH] Remove this down to ensure reset --- .../actuallyadditions/mod/booklet/BookletUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java index 29d1f5f16..2353b5725 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/BookletUtils.java @@ -323,11 +323,6 @@ public final class BookletUtils{ @SideOnly(Side.CLIENT) public static void openIndexEntry(GuiBooklet booklet, IBookletEntry entry, int page, boolean resetTextField){ - if(resetTextField){ - booklet.searchField.setText(""); - updateSearchBar(booklet); - } - if(booklet.currentEntrySet.getCurrentPage() != null){ booklet.currentEntrySet.getCurrentPage().onClosed(booklet); } @@ -370,6 +365,11 @@ public final class BookletUtils{ } } + if(resetTextField){ + booklet.searchField.setText(""); + updateSearchBar(booklet); + } + booklet.shouldSaveDataNextClose = true; }