undo monitor ticking limit

This commit is contained in:
Salomão
2021-02-21 03:24:03 -03:00
parent d25a8a53a2
commit e50eb7965f
+1 -4
View File
@@ -64,7 +64,6 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
private boolean hasChanged = false; private boolean hasChanged = false;
@Nonnegative @Nonnegative
private int localDepthSemaphore = 0; private int localDepthSemaphore = 0;
private boolean ticked;
public NetworkMonitor( final GridStorageCache cache, final IStorageChannel<T> chan ) public NetworkMonitor( final GridStorageCache cache, final IStorageChannel<T> chan )
{ {
@@ -140,10 +139,9 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
@Override @Override
public IItemList<T> getStorageList() public IItemList<T> getStorageList()
{ {
if( hasChanged && ticked ) if( hasChanged )
{ {
hasChanged = false; hasChanged = false;
ticked = false;
this.cachedList.resetStatus(); this.cachedList.resetStatus();
return this.getAvailableItems( this.cachedList ); return this.getAvailableItems( this.cachedList );
} }
@@ -328,7 +326,6 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
void onTick() void onTick()
{ {
ticked = true;
if( this.sendEvent ) if( this.sendEvent )
{ {
this.sendEvent = false; this.sendEvent = false;