Bibliocraft Legacy

Bibliocraft Legacy

2M Downloads

[Bug]: The background of MenuScreen is rendered twice

BloCamLimb opened this issue ยท 2 comments

commented

Describe the bug

public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
renderBackground(guiGraphics, mouseX, mouseY, partialTicks);
super.render(guiGraphics, mouseX, mouseY, partialTicks);
renderTooltip(guiGraphics, mouseX, mouseY);

Here super.render() will call renderBackground, there's no need to call renderBackground again.
If you look at the vanilla MenuScreen (like ContainerScreen, AbstractRecipeBookScreen), none of them call renderBackground a second time.

Steps to Reproduce

No response

Expected behavior

No response

Screenshots

No response

Version

1.21.1-1.5.4

NeoForge Version

N/A

Other Mods

No response

Log

Code of Conduct

  • I agree to follow this project's Code of Conduct
commented

Fixed as of v1.6.0.

commented

Thank you for reporting! This will be included in the next update.