From 66f63d4ab554075b50bad970cd98971f620fdea7 Mon Sep 17 00:00:00 2001 From: HTMonkeyG <3254339747@qq.com> Date: Fri, 25 Oct 2024 01:56:06 +0800 Subject: [PATCH] v2.2.1 Bug fix --- API.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 1433663..32a8000 100644 --- a/API.md +++ b/API.md @@ -88,6 +88,9 @@ NBT.get(obj: any, type: String, key: String|undefined): any /** * Set attribute in NBT object with validation. + * + * When type is not a string, it will set the first value matches given key, + * with its existing type. If the key not exists, it wont be created. * @param {*} obj - Input buffer * @param {String} type - Value type * @param {String} key - Key diff --git a/package.json b/package.json index cddedaf..fc19fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parsenbt-js", - "version": "2.2.0", + "version": "2.2.1", "description": "A JavaScript-based minecraft NBT parser and serializer.", "main": "main.js", "directories": {