fix redstone input direction going in the wrong direction

This commit is contained in:
asiekierka 2014-10-28 21:59:02 +01:00
parent a3d17c72aa
commit 851d447837

View file

@ -662,8 +662,8 @@ public class BlockGenericPipe extends BlockBuildCraft {
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
ForgeDirection d = ForgeDirection.getOrientation(i);
pipe.container.redstoneInputSide[i] = Math.max(
world.isBlockProvidingPowerTo(x + d.offsetX, y + d.offsetY, z + d.offsetZ, i),
world.getIndirectPowerLevelTo(x + d.offsetX, y + d.offsetY, z + d.offsetZ, i)
world.isBlockProvidingPowerTo(x + d.offsetX, y + d.offsetY, z + d.offsetZ, i ^ 1),
world.getIndirectPowerLevelTo(x + d.offsetX, y + d.offsetY, z + d.offsetZ, i ^ 1)
);
if (pipe.container.redstoneInput < pipe.container.redstoneInputSide[i]) {