From bbc31cf5ab65f3f9f090efdc4a39bcadd40dabff Mon Sep 17 00:00:00 2001 From: Sakura Ryoko <116967773+sakura-ryoko@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:16:21 -0400 Subject: [PATCH] Update src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com> --- .../terraformersmc/modmenu/gui/widget/ModListWidget.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java index e9889d01..c6e809e7 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModListWidget.java @@ -234,13 +234,13 @@ protected void renderList(DrawContext DrawContext, int mouseX, int mouseY, float buffer.vertex(matrix, selectionRight - 1, entryTop + entryHeight + 1, 0.0F); buffer.vertex(matrix, selectionRight - 1, entryTop - 1, 0.0F); buffer.vertex(matrix, entryLeft + 1, entryTop - 1, 0.0F); - try - { + try { builtBuffer = buffer.end(); BufferRenderer.drawWithGlobalProgram(builtBuffer); builtBuffer.close(); + } catch (Exception e) { + // Ignored } - catch (Exception ignored) {} } entryLeft = this.getRowLeft();