Prechádzať zdrojové kódy

Fixes HolonElementcCount in Log

TomTroppmann 3 rokov pred
rodič
commit
2778497b41
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/ui/model/DecoratedNetwork.java

+ 2 - 1
src/ui/model/DecoratedNetwork.java

@@ -298,7 +298,8 @@ public class DecoratedNetwork {
 		
 		return supplierList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
 				consumerList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
-				consumerSelfSuppliedList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum);
+				consumerSelfSuppliedList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum)+
+				passivNoEnergyList.stream().map(object -> object.getModel().getNumberOfElements()).reduce(0, Integer::sum);
 	}