From 851d4478375755a47a9b47d5561c34098ea4d682 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Tue, 28 Oct 2014 21:59:02 +0100 Subject: [PATCH] fix redstone input direction going in the wrong direction --- common/buildcraft/transport/BlockGenericPipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/BlockGenericPipe.java b/common/buildcraft/transport/BlockGenericPipe.java index c9087d92..364586d3 100644 --- a/common/buildcraft/transport/BlockGenericPipe.java +++ b/common/buildcraft/transport/BlockGenericPipe.java @@ -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]) {