Allows bouncing on Diazuli Pipe
This commit is contained in:
parent
4ee2d8bd07
commit
068066d9bd
1 changed files with 5 additions and 5 deletions
|
@ -278,17 +278,17 @@ public class PipeTransportItems extends PipeTransport {
|
||||||
result.add(o);
|
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 (allowBouncing && result.isEmpty()) {
|
||||||
if (canReceivePipeObjects(item.input.getOpposite(), item)) {
|
if (canReceivePipeObjects(item.input.getOpposite(), item)) {
|
||||||
result.add(item.input.getOpposite());
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue