Fixed bad parameter name in IPowerReceptor. Fixed call to powerRequest calling with getOpposite in PipeTransportPower

This commit is contained in:
Krapht 2013-03-28 09:30:26 +01:00
parent 35d8a2c6bf
commit 22d15a4c91
2 changed files with 2 additions and 2 deletions

View file

@ -19,6 +19,6 @@ public interface IPowerReceptor {
public void doWork();
public int powerRequest(ForgeDirection validDirections);
public int powerRequest(ForgeDirection from);
}

View file

@ -161,7 +161,7 @@ public class PipeTransportPower extends PipeTransport {
for (int i = 0; i < 6; ++i) {
if (tiles[i] instanceof IPowerReceptor && !(tiles[i] instanceof TileGenericPipe)) {
IPowerReceptor receptor = (IPowerReceptor) tiles[i];
int request = receptor.powerRequest(ForgeDirection.VALID_DIRECTIONS[i]);
int request = receptor.powerRequest(ForgeDirection.VALID_DIRECTIONS[i].getOpposite());
if (request > 0) {
requestEnergy(ForgeDirection.VALID_DIRECTIONS[i], request);