Fixed wood pipe accepting energy from other pipes, following RF migration.
Part of #2016.
This commit is contained in:
parent
b48cd579a3
commit
69ff44dc9f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue