Skip to content

Commit 7e5063f

Browse files
committed
fix: gradient in text highlight
1 parent df8c9a9 commit 7e5063f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modern/templates/java/io/github/notenoughupdates/moulconfig/platform/MoulConfigRenderContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ public void invertedRect(float left, float top, float right, float bottom, int a
200200
int rightI = (int) right;
201201
int bottomI = (int) bottom;
202202
#if MC217
203-
drawContext.fill(RenderPipelines.GUI_INVERT, TextureSetup.empty(), leftI, topI, rightI, bottomI, 0, -1);
204-
drawContext.fill(RenderPipelines.GUI_TEXT_HIGHLIGHT, TextureSetup.empty(), leftI, topI, rightI, bottomI, 0, additiveColor);
203+
drawContext.fill(RenderPipelines.GUI_INVERT, TextureSetup.empty(), leftI, topI, rightI, bottomI, -1, null);
204+
drawContext.fill(RenderPipelines.GUI_TEXT_HIGHLIGHT, TextureSetup.empty(), leftI, topI, rightI, bottomI, additiveColor, null);
205205
#else
206206
drawContext.fill(RenderLayer.getGuiTextHighlight(), leftI, topI, rightI, bottomI, 0, additiveColor);
207207
#endif

0 commit comments

Comments
 (0)