fix italics
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m57s

This commit is contained in:
Lee 2024-04-20 21:17:25 +01:00
parent 69833bf560
commit f85ed49545

View File

@ -87,9 +87,9 @@ public class ServerPreviewRenderer extends Renderer<MinecraftServer> {
case 'o': graphics.setFont(Fonts.MINECRAFT_ITALIC);
default: {
try {
graphics.setFont(Fonts.MINECRAFT);
Color color = ColorUtils.getMinecraftColor(colorCode);
graphics.setColor(color);
graphics.setFont(Fonts.MINECRAFT);
} catch (Exception ignored) {
// Unknown color, can ignore the error
}