Skip to content

Commit

Permalink
Merge branch 'main' into fix-7707
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored Mar 6, 2024
2 parents a5fd0d8 + 043a9f1 commit e17bdc9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public Visibility render(GuiGraphics guiGraphics, ToastComponent toastComponent,
var font = minecraft.font;

// stretch the middle
guiGraphics.blit(BACKGROUND_SPRITE, 0, 0, 0, 32, this.width(), 8);
guiGraphics.blitSprite(BACKGROUND_SPRITE, 160, 32, 0, 0, 0, 0, this.width(), 8);
int middleHeight = height - 16;
for (var middleY = 0; middleY < middleHeight; middleY += 16) {
var tileHeight = Math.min(middleHeight - middleY, 16);
guiGraphics.blit(BACKGROUND_SPRITE, 0, 8 + middleY, 0, 32 + 8, this.width(), tileHeight);
guiGraphics.blitSprite(BACKGROUND_SPRITE, 160, 32, 0, 8, 0, 8 + middleY, this.width(), tileHeight);
}
guiGraphics.blit(BACKGROUND_SPRITE, 0, height - 8, 0, 32 + 32 - 8, this.width(), 8);
guiGraphics.blitSprite(BACKGROUND_SPRITE, 160, 32, 0, 32 - 8, 0, height - 8, this.width(), 8);
guiGraphics.drawString(toastComponent.getMinecraft().font, GuiText.ToastCraftingJobFinishedTitle.text(), 30, 7,
TITLE_COLOR, false);
var lineY = 18;
Expand Down

0 comments on commit e17bdc9

Please sign in to comment.