Skip to content

Commit

Permalink
🐛 Fix no completions for selector w/o type
Browse files Browse the repository at this point in the history
Fix #502.
  • Loading branch information
SPGoding committed Jun 23, 2020
1 parent 935258c commit 4018d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/NbtArgumentParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class NbtArgumentParser extends ArgumentParser<NbtNode> {
let index: nbtdoc.Index<nbtdoc.CompoundTag> | null = null
if (typeof this.id === 'number') {
index = this.id
} else if (this.id) {
} else if (this.id !== undefined) {
const registryDoc = helper.resolveRegistryCompound(this.category, this.id)
index = registryDoc ? registryDoc.Compound : null
}
Expand Down

0 comments on commit 4018d5b

Please sign in to comment.