From 34d9aadc44935dcc7187c704aa16e96a4f3bb816 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sat, 6 Jan 2024 18:42:46 +0000 Subject: [PATCH] Cleanup unused vars in social button --- .../violetmoon/quark/base/client/config/SocialButton.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/violetmoon/quark/base/client/config/SocialButton.java b/src/main/java/org/violetmoon/quark/base/client/config/SocialButton.java index 7b8384be3b..0a73003a28 100644 --- a/src/main/java/org/violetmoon/quark/base/client/config/SocialButton.java +++ b/src/main/java/org/violetmoon/quark/base/client/config/SocialButton.java @@ -18,7 +18,6 @@ public class SocialButton extends Button { public static final ResourceLocation SOCIAL_ICONS = new ResourceLocation(Quark.MOD_ID, "textures/gui/social_icons.png"); - private final Component text; private final int textColor; private final int socialId; @@ -26,7 +25,6 @@ public SocialButton(int x, int y, Component text, int textColor, int socialId, O super(new Button.Builder(Component.literal(""), onClick).size(20, 20).pos(x, y)); this.textColor = textColor; this.socialId = socialId; - this.text = text; setTooltip(Tooltip.create(text)); } @@ -48,9 +46,6 @@ public void renderWidget(@NotNull GuiGraphics guiGraphics, int mouseX, int mouse int v = isHovered ? 20 : 0; guiGraphics.blit(SOCIAL_ICONS, getX(), getY(), u, v, 20, 20, 128, 64); - - //if(isHovered) - // guiGraphics.renderTooltip(Minecraft.getInstance().font, text, mouseX, mouseY); } @Override