View difference between Paste ID: peRGQi7n and 0eq27pdB
SHOW: | | - or go back to the newest paste.
1
@Override
2
	public void neighborChanged(IBlockState state, World worldIn, BlockPos pos,
3-
			Block blockIn, BlockPos p_189540_5_) {
3+
			Block blockIn, BlockPos fromPos) {
4-
		IBlockState neighbor = worldIn.getBlockState(p_189540_5_);
4+
		IBlockState neighbor = worldIn.getBlockState(fromPos);
5
		if (neighbor.getBlock() instanceof BlockBlinds && neighbor.getValue(FACING) == state.getValue(FACING)) {
6
			if (neighbor.getValue(OPEN) != state.getValue(OPEN)) {
7
				worldIn.setBlockState(pos, state.withProperty(OPEN, neighbor.getValue(OPEN)));
8
			}
9
		}
10
	}