1616
1717package dev .terminalmc .chatnotify .gui .widget ;
1818
19- import com .mojang .blaze3d .systems .RenderSystem ;
2019import dev .terminalmc .chatnotify .ChatNotify ;
2120import net .minecraft .client .Minecraft ;
2221import net .minecraft .client .gui .GuiGraphics ;
@@ -223,10 +222,8 @@ protected void renderWidget(@NotNull GuiGraphics graphics, int mouseX, int mouse
223222 * Renders the partially-translucent background texture.
224223 */
225224 protected void renderListBackground (GuiGraphics graphics ) {
226- RenderSystem .enableBlend ();
227225 graphics .blit (RenderType ::guiTextured , MENU_LIST_BACKGROUND , getX (), getY (), 0 , 0 ,
228226 getWidth (), getHeight (), 32 , 32 );
229- RenderSystem .disableBlend ();
230227 }
231228
232229 /**
@@ -273,12 +270,10 @@ protected void renderScrollbar(@NotNull GuiGraphics graphics) {
273270 / getMaxScroll ()
274271 + getX ());
275272
276- RenderSystem .enableBlend ();
277273 graphics .blitSprite (RenderType ::guiTextured , SCROLLER_BACKGROUND_SPRITE ,
278274 getX (), y , getWidth (), SCROLLBAR_HEIGHT );
279275 graphics .blitSprite (RenderType ::guiTextured , SCROLLER_SPRITE ,
280276 scrollerPos , y , scrollerWidth , SCROLLBAR_HEIGHT );
281- RenderSystem .disableBlend ();
282277 }
283278 }
284279
@@ -293,7 +288,6 @@ protected boolean scrollbarVisible() {
293288 * Renders the list separator textures.
294289 */
295290 protected void renderSeparators (GuiGraphics guiGraphics ) {
296- RenderSystem .enableBlend ();
297291 guiGraphics .blit (RenderType ::guiTextured , LEFT_SEPARATOR ,
298292 getX () - 2 , getY () - 1 , 0.0F , 0.0F , 2 , getHeight () + 2 , 2 , 32 );
299293 guiGraphics .blit (RenderType ::guiTextured , RIGHT_SEPARATOR ,
@@ -302,7 +296,6 @@ protected void renderSeparators(GuiGraphics guiGraphics) {
302296 getX () - 1 , getY () - 2 , 0.0F , 0.0F , getWidth () + 2 , 2 , 32 , 2 );
303297 guiGraphics .blit (RenderType ::guiTextured , Screen .FOOTER_SEPARATOR ,
304298 getX () - 1 , getBottom (), 0.0F , 0.0F , getWidth () + 2 , 2 , 32 , 2 );
305- RenderSystem .disableBlend ();
306299 }
307300
308301 // Focus and visibility
0 commit comments