4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-22 06:19:50 +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 auth = null
modsList = undefined modsList = undefined
showNotification = undefined showNotification = undefined
modsInformationsEndpoint = "https://launcher.altarik.fr"
setShowNotification(showNotification) { setShowNotification(showNotification) {
this.showNotification = showNotification this.showNotification = showNotification
} }
/** /**
* @deprecated Mojang removed this method of authentification
* Used to login through Mojang account * Used to login through Mojang account
*/ */
login(event, win, username, password) { login(event, win, username, password) {
@ -133,7 +135,7 @@ class Minecraft {
} }
getModsInformations(event) { getModsInformations(event) {
fetch("https://altarik.fr/launcher.json").then(response => { fetch(this.modsInformationsEndpoint).then(response => {
if(response.ok) { if(response.ok) {
response.json().then(data => { response.json().then(data => {
let folder = join(this.localappdata, "altarik-launcher", "data") let folder = join(this.localappdata, "altarik-launcher", "data")