Fix cable wrong "transferred" calculation
This commit is contained in:
parent
6fb9f4474e
commit
90dc125b1b
@ -97,7 +97,7 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val min = if (simulate) segments.minOf { it.throughput(instantSnapshot) } else segments.minOf { it.availableThroughput }
|
val min = minOf(if (simulate) segments.minOf { it.throughput(instantSnapshot) } else segments.minOf { it.availableThroughput }, amount)
|
||||||
|
|
||||||
if (min.isPositive) {
|
if (min.isPositive) {
|
||||||
if (simulate)
|
if (simulate)
|
||||||
|
Loading…
Reference in New Issue
Block a user