This commit is contained in:
kirillsaint 2023-07-02 17:11:14 +06:00
parent afeb9e3e6d
commit b668956d89
2 changed files with 4 additions and 8 deletions

View File

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

View File

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