Changed NetworkMonitor to update its cache.
No longer invalidates and refresh it with every single change. This should now also ensure that updates are send exactly once per network instead of multiple times scaling up with the amount of chained networks.
This commit is contained in:
@@ -378,10 +378,11 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
|
||||
|
||||
final IMEInventory<IAEItemStack> out = this.getInternalHandler();
|
||||
|
||||
if( this.monitor != null )
|
||||
{
|
||||
this.monitor.onTick();
|
||||
}
|
||||
// TODO: evaluate, if this is really (not) necessary.
|
||||
// if( this.monitor != null )
|
||||
// {
|
||||
// this.monitor.onTick();
|
||||
// }
|
||||
|
||||
IItemList<IAEItemStack> after = AEApi.instance().storage().createItemList();
|
||||
if( out != null )
|
||||
|
||||
Reference in New Issue
Block a user