Merge pull request #100 from Silent-Client/TEST2

(fix) custom skins
This commit is contained in:
kirillsaint 2024-02-09 22:50:07 +06:00 committed by GitHub
commit 4d9f398ffa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public abstract class AbstractClientPlayerMixin implements AbstractClientPlayerE
(new Thread("CustomSkinThread") {
public void run() {
Client.logger.info(String.format("Downloading Custom Skin (%s)", silent$nameClear));
customSkin.setImage(SCTextureManager.getImage("https://cdn-test.silentclient.net/file/silentclient/skins/" + silent$nameClear.toLowerCase() + ".png"));
customSkin.setImage(SCTextureManager.getImage("https://cdn-test.silentclient.net/file/silentclient/" + silent$account.getCustomSkinPath()));
CustomSkin.loading = false;
customSkin.setLoaded(true);
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_tester_manager;
public BigInteger discord_id;
public String custom_skin_path;
public int getPlusExpiration() {
if(plus_expiration != null) {
@ -429,6 +430,10 @@ public class PlayerResponse extends AbstractReply {
}
public String getCustomSkinPath() {
return custom_skin_path;
}
public Cosmetics getCosmetics() {
return cosmetics;
}