From 45dc93e44c8aff3ed392f246a93af861983c8573 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:55:19 +0300 Subject: [PATCH] ScreenDrawing: Remove unnecessary leftover DrawContext.draw() call --- .../java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java index 26195bbb..18e0192c 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java @@ -173,7 +173,6 @@ public static void texturedRect(DrawContext context, int x, int y, int width, in buffer.vertex(model, x + width, y + height, 0).texture(u2, v2).color(color); buffer.vertex(model, x + width, y, 0).texture(u2, v1).color(color); buffer.vertex(model, x, y, 0).texture(u1, v1).color(color); - context.draw(); } /**