mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-13 02:51:33 +01:00
Better Skin System
This commit is contained in:
parent
22bc9d9bac
commit
3a1dc6ad1a
@ -136,7 +136,7 @@ public class LiteAccountPicker extends AccountPicker {
|
|||||||
(new Thread("McAvatarThread") {
|
(new Thread("McAvatarThread") {
|
||||||
public void run() {
|
public void run() {
|
||||||
Client.logger.info(String.format("Downloading avatar %s...", username));
|
Client.logger.info(String.format("Downloading avatar %s...", username));
|
||||||
BufferedImage avatar = SCTextureManager.getImage(String.format("https://mc-heads.net/avatar/%s/100.png", username));
|
BufferedImage avatar = SCTextureManager.getImage(String.format("https://cache.silentclient.net/avatar/%s.png", username));
|
||||||
if(avatar != null) {
|
if(avatar != null) {
|
||||||
Client.logger.info(String.format("Avatar %s successfully downloaded!", username));
|
Client.logger.info(String.format("Avatar %s successfully downloaded!", username));
|
||||||
image = avatar;
|
image = avatar;
|
||||||
|
@ -179,7 +179,7 @@ public class MainMenuConcept extends SilentScreen {
|
|||||||
loading = true;
|
loading = true;
|
||||||
(new Thread("SkinThread") {
|
(new Thread("SkinThread") {
|
||||||
public void run() {
|
public void run() {
|
||||||
BufferedImage skin = SCTextureManager.getImage(String.format("https://mc-heads.net/body/%s/left/1000.png", Client.getInstance().getAccount().getUsername()));
|
BufferedImage skin = SCTextureManager.getImage(String.format("https://cache.silentclient.net/body/%s/left/1000.png", Client.getInstance().getAccount().getUsername()));
|
||||||
if(skin != null) {
|
if(skin != null) {
|
||||||
MainMenuConcept.image = skin;
|
MainMenuConcept.image = skin;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user