Fix not accounting initial cable node limit when transfering energy
This commit is contained in:
parent
6be24540a5
commit
be52bbdc59
@ -89,7 +89,7 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
|
||||
fun receiveEnergy(howMuch: Decimal, simulate: Boolean, fromNode: EnergyCableBlockEntity.Node, fromSide: RelativeSide): Decimal {
|
||||
val itr = livelyNodes.iterator()
|
||||
var received = Decimal.ZERO
|
||||
var residue = howMuch
|
||||
var residue = howMuch.coerceAtMost(fromNode.energyThroughput)
|
||||
|
||||
for (node in itr) {
|
||||
var hit = false
|
||||
|
Loading…
Reference in New Issue
Block a user