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;
@Nonnegative
private int localDepthSemaphore = 0;
private boolean ticked;
public NetworkMonitor( final GridStorageCache cache, final IStorageChannel<T> chan )
{
@@ -140,10 +139,9 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
@Override
public IItemList<T> getStorageList()
{
if( hasChanged && ticked )
if( hasChanged )
{
hasChanged = false;
ticked = false;
this.cachedList.resetStatus();
return this.getAvailableItems( this.cachedList );
}
@@ -328,7 +326,6 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
void onTick()
{
ticked = true;
if( this.sendEvent )
{
this.sendEvent = false;