diff --git a/common/buildcraft/core/statements/StatementParameterDirection.java b/common/buildcraft/core/statements/StatementParameterDirection.java index 90e91626..ff5e1f28 100644 --- a/common/buildcraft/core/statements/StatementParameterDirection.java +++ b/common/buildcraft/core/statements/StatementParameterDirection.java @@ -51,7 +51,7 @@ public class StatementParameterDirection implements IStatementParameter { if (source.getTile() instanceof TileGenericPipe) { do { direction = ForgeDirection.getOrientation((direction.ordinal() + (mouse.getButton() > 0 ? -1 : 1)) % 6); - } while (((TileGenericPipe) source.getTile()).isPipeConnected(direction)); + } while (!((TileGenericPipe) source.getTile()).isPipeConnected(direction)); } } diff --git a/common/buildcraft/transport/BlockGenericPipe.java b/common/buildcraft/transport/BlockGenericPipe.java index 98406ce5..5611b6da 100644 --- a/common/buildcraft/transport/BlockGenericPipe.java +++ b/common/buildcraft/transport/BlockGenericPipe.java @@ -55,7 +55,6 @@ import buildcraft.api.events.PipePlacedEvent; import buildcraft.api.events.RobotPlacementEvent; import buildcraft.api.gates.GateExpansions; import buildcraft.api.gates.IGateExpansion; -import buildcraft.api.robots.EntityRobotBase; import buildcraft.api.tools.IToolWrench; import buildcraft.api.transport.IPipe; import buildcraft.api.transport.IPipeTile; diff --git a/common/buildcraft/transport/pipes/PipeItemsStripes.java b/common/buildcraft/transport/pipes/PipeItemsStripes.java index 620aab57..5604a380 100644 --- a/common/buildcraft/transport/pipes/PipeItemsStripes.java +++ b/common/buildcraft/transport/pipes/PipeItemsStripes.java @@ -112,7 +112,7 @@ public class PipeItemsStripes extends Pipe implements IEnerg } } - if(defaultItemsHandler.handle(getWorld(), (int) p.x, (int) p.y, (int) p.z, + if (defaultItemsHandler.handle(getWorld(), (int) p.x, (int) p.y, (int) p.z, event.direction, stack, player, this)) { event.entity = null; }