From 635fa2ec831e85552207a8c6482deeebd6d6a449 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Sun, 31 Dec 2023 12:59:12 +0600 Subject: [PATCH] Better --- .../java/net/silentclient/client/cosmetics/Outfits.java | 7 +++++++ .../net/silentclient/client/mods/hud/KeystrokesMod.java | 1 - .../net/silentclient/client/mods/hypixel/QuickPlayMod.java | 1 - .../net/silentclient/client/mods/render/AnimationsMod.java | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/silentclient/client/cosmetics/Outfits.java b/src/main/java/net/silentclient/client/cosmetics/Outfits.java index 1498f89..7bea5dc 100644 --- a/src/main/java/net/silentclient/client/cosmetics/Outfits.java +++ b/src/main/java/net/silentclient/client/cosmetics/Outfits.java @@ -1,7 +1,10 @@ package net.silentclient.client.cosmetics; 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 java.io.*; @@ -68,6 +71,10 @@ public class Outfits { Client.logger.info("Loading Outfit: " + outfit.name); Requests.post("https://api.silentclient.net/account/load_outfit", Client.getInstance().getGson().toJson(outfit)); Client.getInstance().updateUserInformation(); + 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); + } } public static ArrayList getOutfits() { diff --git a/src/main/java/net/silentclient/client/mods/hud/KeystrokesMod.java b/src/main/java/net/silentclient/client/mods/hud/KeystrokesMod.java index 04317fe..e27e2f0 100644 --- a/src/main/java/net/silentclient/client/mods/hud/KeystrokesMod.java +++ b/src/main/java/net/silentclient/client/mods/hud/KeystrokesMod.java @@ -30,7 +30,6 @@ public class KeystrokesMod extends ModDraggable { @Override public void setup() { this.addSliderSetting("Scale", this, 2.20F, 1.0F, 5.0F, false); - setUpdated(true); ArrayList cpsModes = new ArrayList<>(); cpsModes.add("None"); cpsModes.add("Small"); diff --git a/src/main/java/net/silentclient/client/mods/hypixel/QuickPlayMod.java b/src/main/java/net/silentclient/client/mods/hypixel/QuickPlayMod.java index 4a6cb4c..60515bd 100644 --- a/src/main/java/net/silentclient/client/mods/hypixel/QuickPlayMod.java +++ b/src/main/java/net/silentclient/client/mods/hypixel/QuickPlayMod.java @@ -30,7 +30,6 @@ public class QuickPlayMod extends Mod { @Override public void setup() { super.setup(); - setNewMod(true); this.addKeybindSetting("Open Menu", this, Keyboard.KEY_MINUS); initHypixelModes(); initRuHypixelModes(); diff --git a/src/main/java/net/silentclient/client/mods/render/AnimationsMod.java b/src/main/java/net/silentclient/client/mods/render/AnimationsMod.java index b843cd3..613b39b 100644 --- a/src/main/java/net/silentclient/client/mods/render/AnimationsMod.java +++ b/src/main/java/net/silentclient/client/mods/render/AnimationsMod.java @@ -12,7 +12,6 @@ public class AnimationsMod extends Mod { @Override public void setup() { - setUpdated(true); this.addBooleanSetting("1.7 Item Positions", this, true); this.addBooleanSetting("1.7 Bow Pullback", this, true); this.addBooleanSetting("1.7 Block Animation", this, true);