amongus
This commit is contained in:
parent
c36690fe94
commit
7846b3f5a4
@ -141,7 +141,7 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
|
|||||||
|
|
||||||
private fun checkThroughput() {
|
private fun checkThroughput() {
|
||||||
if (!throughputKnown) {
|
if (!throughputKnown) {
|
||||||
throughput = nodes.maxOfOrNull { it.energyThroughput } ?: Decimal.ZERO
|
throughput = nodes.minOfOrNull { it.energyThroughput } ?: Decimal.ZERO
|
||||||
throughputKnown = true
|
throughputKnown = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user