Fix #isMojangBlocked not working

This commit is contained in:
Braydon 2024-04-15 09:40:19 -04:00
parent fbbb4e1483
commit 3171346d4b

@ -61,7 +61,9 @@ export const getMinecraftServer = (
* @returns the promised blocked status * @returns the promised blocked status
*/ */
export const isMojangBlocked = (hostname: string): Promise<boolean> => export const isMojangBlocked = (hostname: string): Promise<boolean> =>
new WebRequest(`/server/blocked/${hostname}`).execute<boolean>(); new WebRequest(`/server/blocked/${hostname}`).execute<{
blocked: boolean;
}>().then((res) => res.blocked);
/** /**
* Get the icon of the Java Minecraft * Get the icon of the Java Minecraft