From c1ced52bef31e43818e6dae579b726c3a34a1ef6 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Thu, 8 Feb 2024 17:59:24 +0600 Subject: [PATCH] (fix) emote socket --- .../java/net/silentclient/client/emotes/ui/EmoteMenuGui.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/silentclient/client/emotes/ui/EmoteMenuGui.java b/src/main/java/net/silentclient/client/emotes/ui/EmoteMenuGui.java index 5e6ca65..5c7f8d1 100644 --- a/src/main/java/net/silentclient/client/emotes/ui/EmoteMenuGui.java +++ b/src/main/java/net/silentclient/client/emotes/ui/EmoteMenuGui.java @@ -5,7 +5,7 @@ import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.util.ResourceLocation; import net.silentclient.client.Client; -import net.silentclient.client.emotes.EmoteManager; +import net.silentclient.client.emotes.socket.EmoteSocket; import net.silentclient.client.gui.SilentScreen; import net.silentclient.client.gui.elements.IconButton; import net.silentclient.client.gui.font.SilentFontRenderer; @@ -123,7 +123,7 @@ public class EmoteMenuGui extends SilentScreen { boolean isHovered = MouseUtils.isInside(mouseX, mouseY, emoteX, emoteY, 80, 80) && !MouseUtils.isInside(mouseX, mouseY, emoteX + 80 - 3 - 10, emoteY + 3, 10, 10); if(isHovered) { - EmoteManager.sendEmote(mc.thePlayer.getName(), emote.getId()); + EmoteSocket.get().startEmote(emote.getId()); mc.displayGuiScreen(null); break; }