mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:41:31 +01:00
(fix) custom skins
This commit is contained in:
parent
f03286bdd0
commit
b22201a1a2
@ -112,7 +112,7 @@ public abstract class AbstractClientPlayerMixin implements AbstractClientPlayerE
|
|||||||
(new Thread("CustomSkinThread") {
|
(new Thread("CustomSkinThread") {
|
||||||
public void run() {
|
public void run() {
|
||||||
Client.logger.info(String.format("Downloading Custom Skin (%s)", silent$nameClear));
|
Client.logger.info(String.format("Downloading Custom Skin (%s)", silent$nameClear));
|
||||||
customSkin.setImage(SCTextureManager.getImage("https://cdn.silentclient.net/skins/" + silent$nameClear.toLowerCase() + ".png"));
|
customSkin.setImage(SCTextureManager.getImage("https://cdn-test.silentclient.net/file/silentclient/" + silent$account.getCustomSkinPath()));
|
||||||
CustomSkin.loading = false;
|
CustomSkin.loading = false;
|
||||||
customSkin.setLoaded(true);
|
customSkin.setLoaded(true);
|
||||||
Client.logger.info(String.format("Custom Skin downloaded! (%s)", silent$nameClear));
|
Client.logger.info(String.format("Custom Skin downloaded! (%s)", silent$nameClear));
|
||||||
|
@ -66,6 +66,7 @@ public class PlayerResponse extends AbstractReply {
|
|||||||
public int is_jr_admin;
|
public int is_jr_admin;
|
||||||
public int is_tester_manager;
|
public int is_tester_manager;
|
||||||
public BigInteger discord_id;
|
public BigInteger discord_id;
|
||||||
|
public String custom_skin_path;
|
||||||
|
|
||||||
public int getPlusExpiration() {
|
public int getPlusExpiration() {
|
||||||
if(plus_expiration != null) {
|
if(plus_expiration != null) {
|
||||||
@ -428,6 +429,10 @@ public class PlayerResponse extends AbstractReply {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCustomSkinPath() {
|
||||||
|
return custom_skin_path;
|
||||||
|
}
|
||||||
|
|
||||||
public Cosmetics getCosmetics() {
|
public Cosmetics getCosmetics() {
|
||||||
return cosmetics;
|
return cosmetics;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user