From e8ef4b0aa25397363038d2f4ec4bd903ba086944 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 Date: Sat, 23 Mar 2024 20:01:29 +0800 Subject: [PATCH] adapt: adapt GMLIB v0.9.7 --- SDK-GMLIB | 2 +- manifest.json | 1 + src/InventoryCheck.cpp | 3 +-- tooth.json | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SDK-GMLIB b/SDK-GMLIB index 2bb9134..9935ed4 160000 --- a/SDK-GMLIB +++ b/SDK-GMLIB @@ -1 +1 @@ -Subproject commit 2bb91343e1885f21937705b8fcce304b94bc40ba +Subproject commit 9935ed40635eacf491ad40fd7a93629ee34847bc diff --git a/manifest.json b/manifest.json index 6827888..8250c8f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,7 @@ { "name": "${pluginName}", "entry": "${pluginFile}", + "version": "0.9.2", "type": "native", "dependencies": [ { diff --git a/src/InventoryCheck.cpp b/src/InventoryCheck.cpp index fbf7ca0..4708ba7 100644 --- a/src/InventoryCheck.cpp +++ b/src/InventoryCheck.cpp @@ -101,8 +101,7 @@ std::string getNameFormUuid(mce::UUID& uuid) { std::unordered_map generateUuidMap() { auto allUuids = GMLIB_Player::getAllUuids(); std::unordered_map allList; - for (auto& strUuid : allUuids) { - auto uuid = mce::UUID::fromString(strUuid); + for (auto& uuid : allUuids) { auto name = getNameFormUuid(uuid); allList[uuid] = name; } diff --git a/tooth.json b/tooth.json index 8565ebb..16cd513 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/GroupMountain/InventoryCheck", - "version": "0.9.1", + "version": "0.9.2", "info": { "name": "InventoryCheck", "description": "Check Player's Inventory", @@ -14,9 +14,9 @@ "gmlib" ] }, - "asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.9.1/InventoryCheck-windows-x64.zip", + "asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.9.2/InventoryCheck-windows-x64.zip", "dependencies": { - "github.com/GroupMountain/GMLIB": ">=0.9.2" + "github.com/GroupMountain/GMLIB": ">=0.9.7" }, "files": { "place": [