Revert "delay repo view sorting to once per tick"

This reverts commit d9588441b0.
This commit is contained in:
PrototypeTrousers
2022-09-25 14:35:13 -03:00
parent 5b2c6658c0
commit 82a906886f
2 changed files with 12 additions and 19 deletions
@@ -55,8 +55,6 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource {
private GuiImgButton units;
private int tooltip = -1;
private boolean updateView = true;
public GuiNetworkStatus(final InventoryPlayer inventoryPlayer, final INetworkTool te) {
super(new ContainerNetworkStatus(inventoryPlayer, te));
final GuiScrollbar scrollbar = new GuiScrollbar();
@@ -208,17 +206,9 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource {
for (final IAEItemStack is : list) {
this.repo.postUpdate(is);
}
this.updateView = true;
}
@Override
public void updateScreen() {
if (updateView) {
this.repo.updateView();
this.setScrollBar();
updateView = false;
}
super.updateScreen();
this.repo.updateView();
this.setScrollBar();
}
private void setScrollBar() {