diff --git a/LICENSE.txt b/LICENSE.txt.old similarity index 100% rename from LICENSE.txt rename to LICENSE.txt.old diff --git a/README.md b/README.md index 0716f05..ad1757f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Unknow-DMB Project Launcher +# DMB Project Launcher Based on Helios Launcher ## Development diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 24c6fb0..40c1751 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -150,8 +150,12 @@ function updateSelectedAccount(authUser){ if(authUser.displayName != null){ username = authUser.displayName } - if(authUser.uuid != null){ - document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')` + if (authUser.type != "dpcloudev") { + if (authUser.uuid != null){ + document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')` + } + } else { + document.getElementById('avatarContainer').style.backgroundImage = `` } } user_text.innerHTML = username @@ -713,7 +717,7 @@ async function dlAsync(login = true) { setLaunchDetails(Lang.queryJS('landing.dlAsync.doneEnjoyServer')) // Init Discord Hook - /* + if(distro.rawDistribution.discord != null && serv.rawServer.discord != null){ DiscordWrapper.initRPC(distro.rawDistribution.discord, serv.rawServer.discord) hasRPC = true @@ -724,7 +728,7 @@ async function dlAsync(login = true) { proc = null }) } - */ + } catch(err) { diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index 6b76a1a..e9e6600 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -635,13 +635,19 @@ function populateAuthAccounts(){ let microsoftAuthAccountStr = '' let mojangAuthAccountStr = '' + authKeys.forEach((val) => { const acc = authAccounts[val] + let skinimage = `` + + if (acc.type != "dpcloudev") { + skinimage = `