adapt: adapt GMLIB v0.9.7

This commit is contained in:
Tsubasa6848
2024-03-23 20:01:29 +08:00
Unverified
parent ea1912546f
commit e8ef4b0aa2
4 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -101,8 +101,7 @@ std::string getNameFormUuid(mce::UUID& uuid) {
std::unordered_map<mce::UUID, std::string> generateUuidMap() {
auto allUuids = GMLIB_Player::getAllUuids();
std::unordered_map<mce::UUID, std::string> allList;
for (auto& strUuid : allUuids) {
auto uuid = mce::UUID::fromString(strUuid);
for (auto& uuid : allUuids) {
auto name = getNameFormUuid(uuid);
allList[uuid] = name;
}