Fixed Grid not displaying items after changing redstone mode
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- Fixed crash with Grid
|
- Fixed crash with Grid
|
||||||
- Fixed Grid Filter only updating the Grid when reopening the GUI
|
- Fixed Grid Filter only updating the Grid when reopening the GUI
|
||||||
- Fixed Wireless Grid not working cross dimensionally
|
- 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
|
- Priority field and detector amount field can now display 4 digits at a time
|
||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ public class GuiGrid extends GuiBase {
|
|||||||
|
|
||||||
private static boolean markedForSorting;
|
private static boolean markedForSorting;
|
||||||
|
|
||||||
|
private boolean wasConnected;
|
||||||
|
|
||||||
private GuiTextField searchField;
|
private GuiTextField searchField;
|
||||||
|
|
||||||
private ContainerGrid container;
|
private ContainerGrid container;
|
||||||
@@ -67,6 +69,7 @@ public class GuiGrid extends GuiBase {
|
|||||||
|
|
||||||
this.container = container;
|
this.container = container;
|
||||||
this.grid = grid;
|
this.grid = grid;
|
||||||
|
this.wasConnected = grid.isConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -194,6 +197,12 @@ public class GuiGrid extends GuiBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(int x, int y) {
|
public void update(int x, int y) {
|
||||||
|
if (wasConnected != grid.isConnected()) {
|
||||||
|
wasConnected = grid.isConnected();
|
||||||
|
|
||||||
|
markForSorting();
|
||||||
|
}
|
||||||
|
|
||||||
if (markedForSorting) {
|
if (markedForSorting) {
|
||||||
markedForSorting = false;
|
markedForSorting = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user