Fix networks not posting updates to level emitters and storage monitors.

This commit is contained in:
AlgorithmX2
2014-09-12 16:29:52 -05:00
parent 639f99e6ce
commit 5c5f43a5a9
+7 -1
View File
@@ -48,6 +48,12 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
final static public LinkedList depth = new LinkedList(); 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) protected void postChange(boolean Add, Iterable<T> changes, BaseActionSource src)
{ {
if ( depth.contains( this ) ) if ( depth.contains( this ) )
@@ -56,7 +62,7 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
depth.push( this ); depth.push( this );
sendEvent = true; sendEvent = true;
postChangeToListeners( changes, src ); notifyListenersOfChange( changes, src );
IItemList<T> myStorageList = getStorageList(); IItemList<T> myStorageList = getStorageList();