fix redstone input direction going in the wrong direction
This commit is contained in:
parent
a3d17c72aa
commit
851d447837
1 changed files with 2 additions and 2 deletions
|
@ -662,8 +662,8 @@ public class BlockGenericPipe extends BlockBuildCraft {
|
||||||
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
|
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
|
||||||
ForgeDirection d = ForgeDirection.getOrientation(i);
|
ForgeDirection d = ForgeDirection.getOrientation(i);
|
||||||
pipe.container.redstoneInputSide[i] = Math.max(
|
pipe.container.redstoneInputSide[i] = Math.max(
|
||||||
world.isBlockProvidingPowerTo(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)
|
world.getIndirectPowerLevelTo(x + d.offsetX, y + d.offsetY, z + d.offsetZ, i ^ 1)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pipe.container.redstoneInput < pipe.container.redstoneInputSide[i]) {
|
if (pipe.container.redstoneInput < pipe.container.redstoneInputSide[i]) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue