Other pipes are available

- Moved fluid update fix from encased pipes to all pipes
This commit is contained in:
simibubi 2021-11-22 12:44:36 +01:00
parent 27c69250d1
commit 97bff0f95f
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)))