Skip to content

Commit

Permalink
fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Dec 29, 2020
1 parent 6365941 commit 6e12205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(args, argsStr) {
if (args.includes('big')) return 'big'
if (args.includes('varint')) return 'littleVarint'
if (args.includes('little')) return 'little'
return ''
return undefined
}
if (args[0] == 'write') {
if (!files.length && args[1]) files.push(args[1])
Expand All @@ -53,7 +53,7 @@ function write(inpf, outf, fmt) {
const outBuffer = fs.createWriteStream(outf)

try {
const newBuf = nbt.writeUncompressed(result, json)
const newBuf = nbt.writeUncompressed(json, fmt)
outBuffer.write(newBuf)
outBuffer.end(() => console.log('written!'))
} catch (e) {
Expand Down

0 comments on commit 6e12205

Please sign in to comment.