Fixed Grid not displaying items after changing redstone mode
This commit is contained in:
@@ -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**
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user