Fixed fluid rendering bugs out sidebuttons, fixes #447

This commit is contained in:
Raoul Van den Berge
2016-10-09 16:38:23 +02:00
parent 642e511cdd
commit 32c59ef23f
2 changed files with 2 additions and 10 deletions

View File

@@ -138,10 +138,6 @@ public abstract class GuiBase extends GuiContainer {
}
}
public GuiButton addButton(int x, int y, int w, int h) {
return addButton(x, y, w, h, "");
}
public GuiButton addButton(int x, int y, int w, int h, String text) {
return addButton(x, y, w, h, text, true);
}
@@ -265,12 +261,6 @@ public abstract class GuiBase extends GuiContainer {
GlStateManager.enableLighting();
}
public void drawTooltip(int x, int y, ItemStack stack) {
GlStateManager.disableLighting();
renderToolTip(stack, x, y);
GlStateManager.enableLighting();
}
public void drawTexture(int x, int y, int textureX, int textureY, int width, int height) {
drawTexturedModalRect(x, y, textureX, textureY, width, height);
}

View File

@@ -24,6 +24,8 @@ public abstract class SideButton extends GuiButton {
@Override
public void drawButton(Minecraft mc, int mouseX, int mouseY) {
GlStateManager.enableAlpha();
hovered = gui.inBounds(xPosition, yPosition, width, height, mouseX, mouseY);
gui.bindTexture("icons.png");