From 7e512eba2d0c3c1b6e3dd05b20fe343429c2c3af Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Mon, 30 Jul 2018 20:25:21 +0200 Subject: [PATCH] Bump to 1.6.2 and fix Grid searching not working. Fixes #1923 --- CHANGELOG.md | 3 +++ build.gradle | 2 +- .../com/raoulvdberge/refinedstorage/gui/grid/GuiGrid.java | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 714dd25eba..916ff7d248 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Refined Storage Changelog +### 1.6.2 +- Fixed Grid searching not working (raoulvdberge) + ### 1.6.1 - Added fluid autocrafting (raoulvdberge) - Added Crafting Upgrade support for fluids on the Exporter, Constructor and Fluid Interface (raoulvdberge) diff --git a/build.gradle b/build.gradle index 8c06f88195..40ce4b4b8e 100755 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ apply plugin: 'maven' apply plugin: 'maven-publish' apply plugin: 'net.minecraftforge.gradle.forge' -version = "1.6.1" +version = "1.6.2" def env = System.getenv() if (env.BUILD_NUMBER) { version = version + "-" + "${env.BUILD_NUMBER}" diff --git a/src/main/java/com/raoulvdberge/refinedstorage/gui/grid/GuiGrid.java b/src/main/java/com/raoulvdberge/refinedstorage/gui/grid/GuiGrid.java index b69ab5a62a..b25fa905fa 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/gui/grid/GuiGrid.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/gui/grid/GuiGrid.java @@ -99,7 +99,9 @@ public void init(int x, int y) { if (searchField == null) { searchField = new TextFieldSearch(0, fontRenderer, sx, sy, 88 - 6); - searchField.addListener(view::sort); + searchField.addListener(() -> { + this.getView().sort(); // Use getter since this view can be replaced. + }); searchField.setMode(grid.getSearchBoxMode()); } else { searchField.x = sx;