diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ead4904..877ce3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,9 @@ jobs: if: github.ref == 'refs/heads/master' #for prs, we use the pr-workflow strategy: matrix: - mcVersionIndex: ["1.8", "1.9", "1.10", "1.11", "1.11.2", "1.12", "1.13", "1.14", "1.15", "1.16", "1.16.5", '1.17', '1.18', '1.18.2'] - + mcVersionIndex: ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.5', '1.17.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20.1'] + fail-fast: false + steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 diff --git a/.github/workflows/pr-workflow.yml b/.github/workflows/pr-workflow.yml index 3811a6f..f0a040e 100644 --- a/.github/workflows/pr-workflow.yml +++ b/.github/workflows/pr-workflow.yml @@ -23,7 +23,8 @@ jobs: timeout-minutes: 5 strategy: matrix: - mcVersionIndex: ["1.8", "1.9", "1.10", "1.11", "1.11.2", "1.12", "1.13", "1.14", "1.15", "1.16", "1.16.5"] + mcVersionIndex: ['1.8.8', '1.9.4', '1.10.2', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.5', '1.17.1', '1.18.2', '1.19', '1.19.2', '1.19.3', '1.19.4', '1.20.1'] + fail-fast: false steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 50fe5a9..87126c4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ package-lock.json # output folder of using dumpPackets -output \ No newline at end of file +output + +temp/ \ No newline at end of file diff --git a/lib/mineflayer-log.js b/lib/mineflayer-log.js index 7e56475..1b4ad7d 100644 --- a/lib/mineflayer-log.js +++ b/lib/mineflayer-log.js @@ -59,7 +59,7 @@ class MineflayerLog { await this.kindPromise[meta.name] await fsP.writeFile(path.join(this.outputDirectory, 'from-server', meta.name, '' + n + '.raw'), buffer) - await fsP.writeFile(path.join(this.outputDirectory, 'from-server', meta.name, '' + n + '.json'), JSON.stringify(data, null, 2)) + await fsP.writeFile(path.join(this.outputDirectory, 'from-server', meta.name, '' + n + '.json'), data === undefined ? '' : JSON.stringify(data, null, 2)) }) }