(fix) emote socket

This commit is contained in:
kirillsaint 2024-02-08 17:59:24 +06:00
parent d40779c555
commit c1ced52bef

View File

@ -5,7 +5,7 @@ import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.silentclient.client.Client; 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.SilentScreen;
import net.silentclient.client.gui.elements.IconButton; import net.silentclient.client.gui.elements.IconButton;
import net.silentclient.client.gui.font.SilentFontRenderer; 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); boolean isHovered = MouseUtils.isInside(mouseX, mouseY, emoteX, emoteY, 80, 80) && !MouseUtils.isInside(mouseX, mouseY, emoteX + 80 - 3 - 10, emoteY + 3, 10, 10);
if(isHovered) { if(isHovered) {
EmoteManager.sendEmote(mc.thePlayer.getName(), emote.getId()); EmoteSocket.get().startEmote(emote.getId());
mc.displayGuiScreen(null); mc.displayGuiScreen(null);
break; break;
} }