Skip to content

Commit

Permalink
fix magnet card button disappearing when focused
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed Jun 17, 2024
1 parent 9ab1af5 commit bc5443c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/de/mari_023/ae2wtlib/terminal/ItemButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public void renderWidget(GuiGraphics guiGraphics, final int mouseX, final int mo
guiGraphics.pose().pushPose();
RenderSystem.disableDepthTest();
RenderSystem.enableBlend();
if (isFocused()) {
guiGraphics.fill(getX() - 1, getY() - 1, getX() + 17, getY() + 17, 0xFFFFFFFF);
}

if (!isHovered()) {
Icon.TOOLBAR_BUTTON_BACKGROUND.getBlitter().dest(getX() - 1, getY(), 18, 20).blit(guiGraphics);
Expand Down

0 comments on commit bc5443c

Please sign in to comment.