restore breaking API change

This commit is contained in:
PrototypeTrousers
2021-07-22 21:50:56 -03:00
parent 8e4658be20
commit 8cef06512a
6 changed files with 20 additions and 8 deletions
+11 -3
View File
@@ -219,7 +219,7 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
protected void postChange( final boolean add, final Iterable<T> changes, final IActionSource src )
{
if ( GLOBAL_DEPTH.contains( this ))
if( GLOBAL_DEPTH.contains( this ) )
{
return;
}
@@ -228,7 +228,7 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
this.sendEvent = true;
for ( final T changedItem : changes )
for( final T changedItem : changes )
{
if( !add && changedItem != null )
{
@@ -244,11 +244,19 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
if( !list.isEmpty() )
{
IAEStack<T> fullStack = this.getStorageList().findPrecise( changedItem );
if( fullStack == null )
{
fullStack = changedItem.copy();
fullStack.setStackSize( 0 );
}
this.myGridCache.getInterestManager().enableTransactions();
for( final ItemWatcher iw : list )
{
iw.getHost().onStackChange( changedItem, this.getChannel() );
iw.getHost().onStackChange( this.getStorageList(), fullStack, changedItem, src, this.getChannel() );
}
this.myGridCache.getInterestManager().disableTransactions();