fix: don't manually format UUIDs

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-02-17 10:44:51 +05:00
parent 9bf2792c7f
commit d81fa77d1f
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
5 changed files with 9 additions and 18 deletions

View file

@ -289,8 +289,7 @@ void LaunchController::login()
auto name = askOfflineName("Player", &ok);
if (ok) {
m_session = std::make_shared<AuthSession>();
static const QRegularExpression s_removeChars("[{}-]");
m_session->MakeDemo(name, MinecraftAccount::uuidFromUsername(name).toString().remove(s_removeChars));
m_session->MakeDemo(name, MinecraftAccount::uuidFromUsername(name).toString(QUuid::Id128));
launchInstance();
return;
}