fix italics

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

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