deactivate bedrock uuid resolver
All checks were successful
delpoy / build-and-deploy (push) Successful in 51s

This commit is contained in:
2023-11-30 12:54:25 +01:00
parent 1f150bae06
commit 63605e23b1
2 changed files with 11 additions and 15 deletions

View File

@ -1,10 +1,4 @@
import {
getBedrockUuid,
getJavaUuid,
getNoAuthUuid,
MojangError,
UserNotFoundError
} from '$lib/server/minecraft';
import { ApiError, getJavaUuid, getNoAuthUuid, UserNotFoundError } from '$lib/server/minecraft';
import { error, type RequestHandler } from '@sveltejs/kit';
import { User } from '$lib/server/database';
@ -36,7 +30,8 @@ export const POST = (async ({ request }) => {
uuid = await getJavaUuid(username);
break;
case 'bedrock':
uuid = await getBedrockUuid(username);
uuid = null;
// uuid = await getBedrockUuid(username);
break;
case 'noauth':
uuid = getNoAuthUuid(username);
@ -47,7 +42,7 @@ export const POST = (async ({ request }) => {
} catch (e) {
if (e instanceof UserNotFoundError) {
throw error(400, `Ein Spieler mit dem Namen '${username}' konnte nicht gefunden werden`);
} else if (e instanceof MojangError) {
} else if (e instanceof ApiError) {
console.error((e as Error).message);
uuid = null;
} else {