mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 03:53:12 +01:00
Other pipes are available
- Moved fluid update fix from encased pipes to all pipes
This commit is contained in:
parent
27c69250d1
commit
97bff0f95f
2 changed files with 3 additions and 3 deletions
|
@ -125,6 +125,8 @@ public class FluidPropagator {
|
|||
BlockPos neighborPos, boolean isMoving) {
|
||||
if (world.isClientSide)
|
||||
return null;
|
||||
// calling getblockstate() as otherBlock param seems to contain the block which was replaced
|
||||
otherBlock = world.getBlockState(neighborPos).getBlock();
|
||||
if (otherBlock instanceof FluidPipeBlock)
|
||||
return null;
|
||||
if (otherBlock instanceof AxisPipeBlock)
|
||||
|
|
|
@ -89,9 +89,7 @@ public class EncasedPipeBlock extends Block implements IWrenchable, ISpecialBloc
|
|||
public void neighborChanged(BlockState state, World world, BlockPos pos, Block otherBlock, BlockPos neighborPos,
|
||||
boolean isMoving) {
|
||||
DebugPacketSender.sendNeighborsUpdatePacket(world, pos);
|
||||
// calling getblockstate() as otherBlock param seems to contain the block which was replaced
|
||||
Direction d = FluidPropagator.validateNeighbourChange(state, world, pos, world.getBlockState(neighborPos)
|
||||
.getBlock(), neighborPos, isMoving);
|
||||
Direction d = FluidPropagator.validateNeighbourChange(state, world, pos, otherBlock, neighborPos, isMoving);
|
||||
if (d == null)
|
||||
return;
|
||||
if (!state.getValue(FACING_TO_PROPERTY_MAP.get(d)))
|
||||
|
|
Loading…
Reference in a new issue