fix #3069
This commit is contained in:
parent
213fe63f91
commit
ca6b6647ed
|
@ -1,4 +1,5 @@
|
|||
Bugs fixed:
|
||||
|
||||
* [#3072] PipeTransportFluids crash (proper fix) (asie)
|
||||
* [#3069, #2865] Fluid pipe extraction speed ~25% lower than intended (asie, mconwa01)
|
||||
* Rotated quarry not detecting its own frame (asie)
|
||||
|
|
|
@ -335,15 +335,17 @@ public class PipeTransportFluids extends PipeTransport implements IFluidHandler,
|
|||
inputPerTick[dir.ordinal()] = 0;
|
||||
if (transferState[dir.ordinal()] != TransferState.Output) {
|
||||
inputPerTick[dir.ordinal()] = sections[dir.ordinal()].drain(flowRate, false);
|
||||
transferInCount++;
|
||||
if (inputPerTick[dir.ordinal()] > 0) {
|
||||
transferInCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
float min = Math.min(flowRate * transferInCount, spaceAvailable) / (float) flowRate / transferInCount;
|
||||
|
||||
for (ForgeDirection dir : directions) {
|
||||
// Move liquid from input sides to the center
|
||||
if (transferState[dir.ordinal()] != TransferState.Output && inputPerTick[dir.ordinal()] > 0) {
|
||||
|
||||
if (inputPerTick[dir.ordinal()] > 0) {
|
||||
int amountToDrain = (int) (inputPerTick[dir.ordinal()] * min);
|
||||
if (amountToDrain < 1) {
|
||||
amountToDrain++;
|
||||
|
|
|
@ -816,8 +816,9 @@ public class TileGenericPipe extends TileEntity implements IFluidHandler,
|
|||
public boolean isPipeConnected(ForgeDirection with) {
|
||||
if (worldObj.isRemote) {
|
||||
return renderState.pipeConnectionMatrix.isConnected(with);
|
||||
} else {
|
||||
return pipeConnectionsBuffer[with.ordinal()];
|
||||
}
|
||||
return pipeConnectionsBuffer[with.ordinal()];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue