From 5dc072f77fad376e7b23cb1d141a555a07d43636 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Sat, 30 Sep 2023 16:42:41 +0200 Subject: [PATCH] Changed mod informations endpoint --- src/server/minecraft.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/minecraft.js b/src/server/minecraft.js index 53dfc84..bc0cf37 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -21,12 +21,14 @@ class Minecraft { auth = null modsList = undefined showNotification = undefined + modsInformationsEndpoint = "https://launcher.altarik.fr" setShowNotification(showNotification) { this.showNotification = showNotification } /** + * @deprecated Mojang removed this method of authentification * Used to login through Mojang account */ login(event, win, username, password) { @@ -133,7 +135,7 @@ class Minecraft { } getModsInformations(event) { - fetch("https://altarik.fr/launcher.json").then(response => { + fetch(this.modsInformationsEndpoint).then(response => { if(response.ok) { response.json().then(data => { let folder = join(this.localappdata, "altarik-launcher", "data")