diff --git a/src/main/java/com/github/alexthe666/citadel/client/gui/GuiBasicBook.java b/src/main/java/com/github/alexthe666/citadel/client/gui/GuiBasicBook.java index 9f0bde3..46dffbc 100644 --- a/src/main/java/com/github/alexthe666/citadel/client/gui/GuiBasicBook.java +++ b/src/main/java/com/github/alexthe666/citadel/client/gui/GuiBasicBook.java @@ -272,13 +272,8 @@ protected void renderBlurredBackground(float partialTick) { // Do nothing - this prevents the blur effect from being applied } - /** - * Override to disable the menu background that was added in Minecraft 1.21 - * Without this override, the book appears darker due to the overlay - */ @Override - protected void renderMenuBackground(GuiGraphics guiGraphics) { - // Do nothing - this prevents the dark menu background from being rendered + public void renderBackground(GuiGraphics guiGraphics, int x, int y, float partialTicks) { } @Override @@ -289,7 +284,8 @@ public void render(GuiGraphics guiGraphics, int x, int y, float partialTicks) { int bindingR = bindingColor >> 16 & 255; int bindingG = bindingColor >> 8 & 255; int bindingB = bindingColor & 255; - this.renderBackground(guiGraphics, x, y, partialTicks); + this.renderTransparentBackground(guiGraphics); + guiGraphics.flush(); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize + 128) / 2; BookBlit.blitWithColor(guiGraphics, getBookBindingTexture(), k, l, 0, 0, xSize, ySize, xSize, ySize, bindingR, bindingG, bindingB, 255);