mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
Prime patching material
- Fixed open pipe ends not providing fluids to pipe networks - Safety check for pipe attachment rendering
This commit is contained in:
parent
62621f8bdd
commit
5b3e1e8c38
2 changed files with 8 additions and 2 deletions
|
@ -191,6 +191,12 @@ public class FluidNetwork {
|
|||
transfer = handler.drain(toExtract, action);
|
||||
}
|
||||
|
||||
if (transfer.isEmpty()) {
|
||||
FluidStack genericExtract = handler.drain(flowSpeed, action);
|
||||
if (!genericExtract.isEmpty() && genericExtract.isFluidEqual(fluid))
|
||||
transfer = genericExtract;
|
||||
}
|
||||
|
||||
if (transfer.isEmpty())
|
||||
return;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public class StraightPipeTileEntity extends SmartTileEntity {
|
|||
|
||||
@Override
|
||||
public boolean canHaveFlowToward(BlockState state, Direction direction) {
|
||||
return state.get(AxisPipeBlock.AXIS) == direction.getAxis();
|
||||
return state.has(AxisPipeBlock.AXIS) && state.get(AxisPipeBlock.AXIS) == direction.getAxis();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue