Skip to content

Commit 626caa7

Browse files
committed
Update to mc1.21.5
1 parent d9a5ba4 commit 626caa7

File tree

5 files changed

+260
-205
lines changed

5 files changed

+260
-205
lines changed

common/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ dependencies {
3333
}
3434

3535
neoForge {
36-
version = neoforge_version // Shut up
3736
neoFormVersion = neoform_version
3837
// Automatically enable AccessTransformers if the file exists
3938
def at = file("src/main/resources/META-INF/accesstransformer.cfg")

common/src/main/java/dev/terminalmc/chatnotify/gui/widget/HorizontalList.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package dev.terminalmc.chatnotify.gui.widget;
1818

19-
import com.mojang.blaze3d.systems.RenderSystem;
2019
import dev.terminalmc.chatnotify.ChatNotify;
2120
import net.minecraft.client.Minecraft;
2221
import 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

Comments
 (0)