From b668956d89b5696f5df39da85c1f90b3337e6331 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Sun, 2 Jul 2023 17:11:14 +0600 Subject: [PATCH] fix --- .../client/cosmetics/gui/CosmeticsGui.java | 2 +- .../client/utils/types/PlayerResponse.java | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/net/silentclient/client/cosmetics/gui/CosmeticsGui.java b/src/main/java/net/silentclient/client/cosmetics/gui/CosmeticsGui.java index f8e4974..d584fed 100644 --- a/src/main/java/net/silentclient/client/cosmetics/gui/CosmeticsGui.java +++ b/src/main/java/net/silentclient/client/cosmetics/gui/CosmeticsGui.java @@ -50,7 +50,7 @@ public class CosmeticsGui extends SilentScreen { CosmeticsGui.scrollY = 0; CosmeticsGui.selectedCategory = "capes"; MenuBlurUtils.loadBlur(); - Client.getInstance().getCosmetics().update(true); + Client.getInstance().updateUserInformation(); int categoryOffsetY = 25; int addX = 190; int addY = 110; diff --git a/src/main/java/net/silentclient/client/utils/types/PlayerResponse.java b/src/main/java/net/silentclient/client/utils/types/PlayerResponse.java index ca7d673..9fc3052 100644 --- a/src/main/java/net/silentclient/client/utils/types/PlayerResponse.java +++ b/src/main/java/net/silentclient/client/utils/types/PlayerResponse.java @@ -1,9 +1,6 @@ package net.silentclient.client.utils.types; -import net.minecraft.client.Minecraft; -import net.minecraft.entity.player.EntityPlayer; import net.silentclient.client.Client; -import net.silentclient.client.mixin.ducks.AbstractClientPlayerExt; import net.silentclient.client.utils.Players; import net.silentclient.client.utils.Requests; import net.silentclient.client.utils.reply.AbstractReply; @@ -152,6 +149,7 @@ public class PlayerResponse extends AbstractReply { public void setShowNametagMessage(boolean show) { this.show_nametag_message = show ? 1 : 0; + Players.reload(); Players.handleAccount(this); (new Thread("setShowNametagMessage") { public void run() { @@ -163,6 +161,7 @@ public class PlayerResponse extends AbstractReply { public void setNametagMessage(String message) { this.nametag_message = message; + Players.reload(); Players.handleAccount(this); (new Thread("setShowNametagMessage") { public void run() { @@ -178,10 +177,7 @@ public class PlayerResponse extends AbstractReply { public void setCapeShoulders(boolean shoulders) { this.cape_shoulders = shoulders ? 1 : 0; - Players.reload(); - if(Minecraft.getMinecraft().thePlayer != null) { - Players.getPlayerStatus(false, ((AbstractClientPlayerExt) Minecraft.getMinecraft().thePlayer).silent$getNameClear(), EntityPlayer.getUUID(Minecraft.getMinecraft().thePlayer.getGameProfile()), Minecraft.getMinecraft().thePlayer); - } + Players.handleAccount(this); (new Thread("setShoulders") { public void run() { Requests.post("https://api.silentclient.net/account/set_cape_shoulders", new JSONObject().put("enabled", shoulders).toString());