Skip to content

Commit

Permalink
fix: janitor gui
Browse files Browse the repository at this point in the history
Closes #1041
  • Loading branch information
klikli-dev committed Jan 24, 2024
1 parent 2737efe commit 7b41a89
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public void init() {

@Override
protected void renderBg(GuiGraphics guiGraphics, float partialTicks, int x, int y) {
this.renderBackground(guiGraphics);

RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
guiGraphics.blit(TEXTURE, this.leftPos, this.topPos, 0, 0, this.imageWidth, this.imageHeight);

Expand All @@ -159,7 +161,7 @@ protected void renderFg(GuiGraphics guiGraphics, int mouseX, int mouseY) {
}

if (!this.tooltip.isEmpty())
guiGraphics.renderTooltip(this.font, this.tooltip, Optional.empty(), mouseX - this.leftPos, mouseY - this.topPos);
guiGraphics.renderTooltip(this.font, this.tooltip, Optional.empty(), mouseX, mouseY);
}

@Override
Expand Down

0 comments on commit 7b41a89

Please sign in to comment.