Fixed wood pipe accepting energy from other pipes, following RF migration.

Part of #2016.
This commit is contained in:
SpaceToad 2014-09-14 16:59:07 +02:00
parent b48cd579a3
commit 69ff44dc9f

View file

@ -237,7 +237,11 @@ public class PipePowerWood extends Pipe<PipeTransportPower> implements IPowerRec
@Override
public int receiveEnergy(ForgeDirection from, int maxReceive,
boolean simulate) {
return battery.receiveEnergy(maxReceive, simulate);
if (powerSources[from.ordinal()]) {
return battery.receiveEnergy(maxReceive, simulate);
} else {
return 0;
}
}
@Override