4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-21 06:09:51 +01:00

Changed mod informations endpoint

This commit is contained in:
Quentin Legot 2023-09-30 16:42:41 +02:00
parent 30d14d4bbc
commit 5dc072f77f

View File

@ -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")