Fixed Grid not displaying items after changing redstone mode

This commit is contained in:
Raoul Van den Berge
2016-08-22 01:34:44 +02:00
parent 2a9854d767
commit 888f0ffeb5
2 changed files with 10 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
- Fixed crash with Grid
- Fixed Grid Filter only updating the Grid when reopening the GUI
- Fixed Wireless Grid not working cross dimensionally
- Fixed Grid not displaying items after changing redstone mode
- Priority field and detector amount field can now display 4 digits at a time
**Features**

View File

@@ -49,6 +49,8 @@ public class GuiGrid extends GuiBase {
private static boolean markedForSorting;
private boolean wasConnected;
private GuiTextField searchField;
private ContainerGrid container;
@@ -67,6 +69,7 @@ public class GuiGrid extends GuiBase {
this.container = container;
this.grid = grid;
this.wasConnected = grid.isConnected();
}
@Override
@@ -194,6 +197,12 @@ public class GuiGrid extends GuiBase {
@Override
public void update(int x, int y) {
if (wasConnected != grid.isConnected()) {
wasConnected = grid.isConnected();
markForSorting();
}
if (markedForSorting) {
markedForSorting = false;