Skip to content

Commit

Permalink
fix missing previous page button
Browse files Browse the repository at this point in the history
  • Loading branch information
Minecraftschurli committed Mar 8, 2024
1 parent bf39ad1 commit e6f8c53
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public GuiButtonBook(GuiBook parent, int x, int y, int u, int v, int w, int h, S

@Override
public void renderWidget(GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) {
active = visible = displayCondition.get();
active = displayCondition.get();
if (!active)
return;
RenderSystem.setShaderColor(1F, 1F, 1F, 1F);
GuiBook.drawFromTexture(graphics, parent.book, getX(), getY(), u + (isHoveredOrFocused() ? width : 0), v, width, height);
if (isHoveredOrFocused()) {
Expand Down

0 comments on commit e6f8c53

Please sign in to comment.