fix #2404
This commit is contained in:
parent
ada7c2cf32
commit
d21680fc5e
1 changed files with 1 additions and 0 deletions
|
@ -544,6 +544,7 @@ public class PipeTransportPower extends PipeTransport {
|
|||
|
||||
if (externalPower[dir.ordinal()] < max) {
|
||||
result = externalPower[dir.ordinal()];
|
||||
externalPower[dir.ordinal()] = 0;
|
||||
} else {
|
||||
result = max;
|
||||
externalPower[dir.ordinal()] -= max;
|
||||
|
|
Loading…
Reference in a new issue