aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-05-24 16:45:15 +0200
committerGitHub <noreply@github.com>2021-05-24 16:45:15 +0200
commit12582fb1cec74a5d05a1adfedc1eb04e4f7409c1 (patch)
tree18ebd936b02506772cd2004d0c893d8dcecb1cad /src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java
parentc39086946112174b81612e7fd96a2ce0ad056620 (diff)
parenta4e104881944bbc03eddeacb24a6b7bd94cc53ce (diff)
downloadGT5-Unofficial-12582fb1cec74a5d05a1adfedc1eb04e4f7409c1.tar.gz
GT5-Unofficial-12582fb1cec74a5d05a1adfedc1eb04e4f7409c1.tar.bz2
GT5-Unofficial-12582fb1cec74a5d05a1adfedc1eb04e4f7409c1.zip
Merge pull request #546 from GTNewHorizons/glow-texture
fix(render): grass block top grey in inventory
Diffstat (limited to 'src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java')
-rw-r--r--src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java
index e081c4227d..91f611b9b6 100644
--- a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java
+++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java
@@ -27,6 +27,7 @@ public class GT_GuiIconButton extends GuiButton implements IGuiScreen.IGuiElemen
gui.addElement(this);
}
+ @Override
public void onInit() {
if (tooltip != null)
gui.addToolTip(tooltip);
@@ -39,6 +40,7 @@ public class GT_GuiIconButton extends GuiButton implements IGuiScreen.IGuiElemen
drawButton(Minecraft.getMinecraft(), mouseX, mouseY);
}
+ @Override
public void drawButton(Minecraft mc, int mouseX, int mouseY) {
if (this.tooltip != null)
this.tooltip.enabled = true;