Skip to content

Commit 9d2f716

Browse files
committed
Fixed Custom Progress Bar background sizing
1 parent 96e988e commit 9d2f716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/hypherionmc/simplesplashscreen/mixins/ResourceLoadProgressGuiMixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private void func_238629_a_(MatrixStack matrixStack, int x1, int y1, int x2, int
216216
int customWidth = CustomSplashScreen.CS_CONFIG.customProgressBarMode == CustomSplashScreenConfig.ProgressBarMode.Linear ? x2 - x1 : i;
217217
if (CS_CONFIG.customProgressBarBackground) {
218218
this.mc.getTextureManager().bindTexture(CUSTOM_PROGRESS_BAR_BACKGROUND_TEXTURE);
219-
blit(matrixStack, x1, y1, 0, 0, 6, x2 - x1, y2 - y1, 10, x2-x1);
219+
blit(matrixStack, x1, y1, 0, 0, 6, x2 - x1, y2 - y1, 10, customWidth);
220220
}
221221
this.mc.getTextureManager().bindTexture(CUSTOM_PROGRESS_BAR_TEXTURE);
222222
blit(matrixStack, x1, y1, 0, 0, 6, i, y2 - y1, 10, customWidth);

0 commit comments

Comments
 (0)