Skip to content

Commit

Permalink
Fix parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZillaGold committed Feb 19, 2021
1 parent 995531d commit e83785a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rawjsonbuilder",
"version": "1.0.6",
"version": "1.0.7",
"description": "Minecraft Raw JSON text builder",
"main": "./lib/RawJSONBuilder.js",
"types": "./lib/interfaces.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/RawJSONBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class RawJSONBuilder {
}

parse(text: string): RawJSONBuilder {
return new RawJSONBuilder(parser(text));
return new RawJSONBuilder(parser.parseString(text));
}

toJSON(): (IText | ITranslate | IClickEvent | IKeybind | NBT | IScore | ISelector) & { extra: (IText | ITranslate | IClickEvent | IKeybind | NBT | IScore | ISelector)[] } {
Expand Down

0 comments on commit e83785a

Please sign in to comment.