Fix networks not posting updates to level emitters and storage monitors.
This commit is contained in:
parent
639f99e6ce
commit
5c5f43a5a9
1 changed files with 8 additions and 2 deletions
10
me/cache/NetworkMonitor.java
vendored
10
me/cache/NetworkMonitor.java
vendored
|
@ -47,7 +47,13 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
|
|||
}
|
||||
|
||||
final static public LinkedList depth = new LinkedList();
|
||||
|
||||
|
||||
@Override
|
||||
protected void postChangesToListeners(Iterable<T> changes, BaseActionSource src)
|
||||
{
|
||||
postChange( true, changes, src );
|
||||
}
|
||||
|
||||
protected void postChange(boolean Add, Iterable<T> changes, BaseActionSource src)
|
||||
{
|
||||
if ( depth.contains( this ) )
|
||||
|
@ -56,7 +62,7 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
|
|||
depth.push( this );
|
||||
|
||||
sendEvent = true;
|
||||
postChangeToListeners( changes, src );
|
||||
notifyListenersOfChange( changes, src );
|
||||
|
||||
IItemList<T> myStorageList = getStorageList();
|
||||
|
||||
|
|
Loading…
Reference in a new issue