diff --git a/common/buildcraft/transport/PipeTransportItems.java b/common/buildcraft/transport/PipeTransportItems.java index cc39547e..aca0a2ea 100644 --- a/common/buildcraft/transport/PipeTransportItems.java +++ b/common/buildcraft/transport/PipeTransportItems.java @@ -278,17 +278,17 @@ public class PipeTransportItems extends PipeTransport { result.add(o); } + if (this.container.pipe instanceof IPipeTransportItemsHook) { + Position pos = new Position(container.xCoord, container.yCoord, container.zCoord, item.input); + result = ((IPipeTransportItemsHook) this.container.pipe).filterPossibleMovements(result, pos, item); + } + if (allowBouncing && result.isEmpty()) { if (canReceivePipeObjects(item.input.getOpposite(), item)) { result.add(item.input.getOpposite()); } } - if (this.container.pipe instanceof IPipeTransportItemsHook) { - Position pos = new Position(container.xCoord, container.yCoord, container.zCoord, item.input); - result = ((IPipeTransportItemsHook) this.container.pipe).filterPossibleMovements(result, pos, item); - } - return result; }