Skip to content

Commit

Permalink
Fix rendering condition
Browse files Browse the repository at this point in the history
  • Loading branch information
KabanFriends committed Jul 23, 2024
1 parent c787719 commit b191ce1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public void onClientTick() {
}

public void onGameRender(GuiGraphics graphics, int mouseX, int mouseY) {
if (shouldRenderOverlay(craftGR)) {
if (!shouldRenderOverlay(craftGR)) {
return;
}
craftGR.getSongInfoOverlay().render(graphics, mouseX, mouseY);
}

public boolean onMouseClick(int mouseX, int mouseY) {
if (shouldRenderOverlay(craftGR)) {
if (!shouldRenderOverlay(craftGR)) {
return true;
}
return craftGR.getSongInfoOverlay().mouseClick(mouseX, mouseY);
Expand Down

0 comments on commit b191ce1

Please sign in to comment.