refactor: remove useless api

This commit is contained in:
Tsubasa6848
2024-02-26 20:14:12 +08:00
Unverified
parent 47f758c915
commit b4ab01b150
2 changed files with 0 additions and 13 deletions
-8
View File
@@ -43,14 +43,6 @@ void Export_Compatibility_API() {
return GMLIB_Player::setPlayerNbtTags(uid, *nbt, tags);
}
);
RemoteCall::exportAs("GMLIB_API", "tryGetNameFormUuid", [](std::string uuid) -> std::string {
auto uid = mce::UUID::fromString(uuid);
auto info = ll::service::PlayerInfo::getInstance().fromUuid(uid);
if (info) {
return info->name;
}
return "";
});
RemoteCall::exportAs("GMLIB_API", "getAllExperiments", []() -> std::vector<int> {
auto map = GMLIB_Level::getAllExperiments();
std::vector<int> result;