From 068066d9bdfe0e61d497281e4892e9c709663808 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Tue, 15 Oct 2013 09:15:28 -0700 Subject: [PATCH] Allows bouncing on Diazuli Pipe --- common/buildcraft/transport/PipeTransportItems.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }