diff --git a/package-lock.json b/package-lock.json index 4b75c5a..bf166c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rawjsonbuilder", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 9f4e518..3ac5c67 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/RawJSONBuilder.ts b/src/RawJSONBuilder.ts index 93edcc3..e3e0be2 100644 --- a/src/RawJSONBuilder.ts +++ b/src/RawJSONBuilder.ts @@ -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)[] } {