Skip to content

Commit

Permalink
Don't render toast text with a shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Jul 7, 2023
1 parent 915b6f9 commit 9519448
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public Visibility render(GuiGraphics graphics, ToastComponent component, long ti
graphics.renderFakeItem(stack, MARGIN, MARGIN + height() / 2 - IMAGE_SIZE);
}

graphics.drawString(component.getMinecraft().font, title, textX, MARGIN, 0xff500050);
graphics.drawString(component.getMinecraft().font, title, textX, MARGIN, 0xff500050, false);
for (var i = 0; i < message.size(); ++i) {
graphics.drawString(component.getMinecraft().font, message.get(i), textX, LINE_SPACING + (i + 1) * LINE_SPACING, 0xff000000);
graphics.drawString(component.getMinecraft().font, message.get(i), textX, LINE_SPACING + (i + 1) * LINE_SPACING, 0xff000000, false);
}

return time - firstDisplay < DISPLAY_TIME ? Visibility.SHOW : Visibility.HIDE;
Expand Down

0 comments on commit 9519448

Please sign in to comment.