(fix) custom skins

This commit is contained in:
kirillsaint 2024-02-09 22:52:01 +06:00
parent f03286bdd0
commit b22201a1a2
2 changed files with 6 additions and 1 deletions

View File

@ -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));

View File

@ -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;
} }