Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from lgou2w/develop
Browse files Browse the repository at this point in the history
v0.1.3
  • Loading branch information
lgou2w authored May 19, 2020
2 parents b4f4f9b + 2ecdc98 commit 6ea8c22
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "l2nbt",
"version": "0.1.2",
"version": "0.1.3",
"description": "A lgou2w Minecraft NBT library for Javascript",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ export {
NBTReader,
read,
readBase64
} from './nbt-reader'
} from './reader'

export {
NBTWriter,
write,
writeBase64
} from './nbt-writer'
} from './writer'

export {
writeMojangson,
readMojangson,
readMojangsonCompound
} from './nbt-json'
} from './json'
File renamed without changes.
10 changes: 5 additions & 5 deletions src/nbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ export function tag (type: NBTType, value: any): NBT {
value,
writable: true,
configurable: true,
enumerable: false
enumerable: true
},
__type__: {
value: type,
writable: false,
configurable: false,
enumerable: false
enumerable: true
},
__nbt__: {
value: true,
writable: false,
configurable: false,
enumerable: false
enumerable: true
}
}) as NBT
}
Expand Down Expand Up @@ -179,7 +179,7 @@ export function tagList (value?: NBT[]): NBTList {
value: elementType,
writable: false,
configurable: false,
enumerable: false
enumerable: true
}
})
}
Expand Down Expand Up @@ -257,7 +257,7 @@ export function resolve (nbt: NBT): NBT {
const val = values[key] as NBT
Object.defineProperty(nbt, key, {
configurable: true,
enumerable: false,
enumerable: true,
get (): any {
return val.__type__ === NBTTypes.TAG_COMPOUND
? val
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6ea8c22

Please sign in to comment.