From 22d15a4c91c8d3073fafbd4715d6bdd2f743f003 Mon Sep 17 00:00:00 2001 From: Krapht Date: Thu, 28 Mar 2013 09:30:26 +0100 Subject: [PATCH] Fixed bad parameter name in IPowerReceptor. Fixed call to powerRequest calling with getOpposite in PipeTransportPower --- common/buildcraft/api/power/IPowerReceptor.java | 2 +- common/buildcraft/transport/PipeTransportPower.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/api/power/IPowerReceptor.java b/common/buildcraft/api/power/IPowerReceptor.java index 535f5049..661145e0 100644 --- a/common/buildcraft/api/power/IPowerReceptor.java +++ b/common/buildcraft/api/power/IPowerReceptor.java @@ -19,6 +19,6 @@ public interface IPowerReceptor { public void doWork(); - public int powerRequest(ForgeDirection validDirections); + public int powerRequest(ForgeDirection from); } diff --git a/common/buildcraft/transport/PipeTransportPower.java b/common/buildcraft/transport/PipeTransportPower.java index 3c3e2a0e..4e4d2af7 100644 --- a/common/buildcraft/transport/PipeTransportPower.java +++ b/common/buildcraft/transport/PipeTransportPower.java @@ -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);