feat(distro): change distribution url

This commit is contained in:
Leafd 2024-10-09 17:57:13 -06:00
parent e06effcd5a
commit b57e729e43
No known key found for this signature in database
GPG Key ID: E3C7A5F038AFF7A6
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

@ -4,7 +4,7 @@ const ConfigManager = require('./configmanager')
// Old WesterosCraft url.
// exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
exports.REMOTE_DISTRO_URL = 'https://helios-files.geekcorner.eu.org/distribution.json'
exports.REMOTE_DISTRO_URL = 'https://cdn.marcusk.fun/distribution.json'
const api = new DistributionAPI(
ConfigManager.getLauncherDirectory(),

View File

@ -149,7 +149,7 @@ function updateSelectedAccount(authUser){
username = authUser.displayName
}
if(authUser.uuid != null){
document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')`
document.getElementById('avatarContainer').style.backgroundImage = `url('https://minecraftpfp.com/api/pfp/${authUser.displayName}.png')`
}
}
user_text.innerHTML = username

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 282 KiB