mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Fixed power derp. For good now, I think.
This commit is contained in:
parent
f4258aa719
commit
c77a1ef785
@ -43,7 +43,7 @@ trait Common extends TileEntity {
|
|||||||
else connector(side) match {
|
else connector(side) match {
|
||||||
case Some(node) =>
|
case Some(node) =>
|
||||||
val cappedAmount = math.max(0, math.min(math.min(energyThroughput, amount), globalDemand(side)))
|
val cappedAmount = math.max(0, math.min(math.min(energyThroughput, amount), globalDemand(side)))
|
||||||
if (doReceive) amount - node.changeBuffer(cappedAmount)
|
if (doReceive) cappedAmount - node.changeBuffer(cappedAmount)
|
||||||
else cappedAmount
|
else cappedAmount
|
||||||
case _ => 0
|
case _ => 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user