Fix a few UI screens crashing

This commit is contained in:
James Seibel
2025-09-21 21:25:57 -05:00
parent f55cb4b320
commit 77c7ebc0d0
2 changed files with 9 additions and 2 deletions
@@ -78,9 +78,12 @@ public class MinecraftScreen
{
#if MC_VER < MC_1_20_2
this.renderBackground(matrices); // Render background
#else
#elif MC_VER < MC_1_21_6
this.renderBackground(matrices, mouseX, mouseY, delta); // Render background
#else
// background blur is already being rendered, rendering again causes the game to crash
#endif
this.list.render(matrices, mouseX, mouseY, delta); // Renders the items in the render list (currently only used to tint background darker)
screen.mouseX = mouseX;
@@ -74,6 +74,7 @@ public class ChangelogScreen extends DhScreen
{
return;
}
try
{
this.setupChangelog(versionID);
@@ -175,9 +176,12 @@ public class ChangelogScreen extends DhScreen
{
#if MC_VER < MC_1_20_2
this.renderBackground(matrices); // Render background
#else
#elif MC_VER < MC_1_21_6
this.renderBackground(matrices, mouseX, mouseY, delta); // Render background
#else
// background blur is already being rendered, rendering again causes the game to crash
#endif
if (!this.usable)
{
return;