Skip to content

Commit

Permalink
Changed text color in JEI/EMI to make it more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroksl committed Dec 24, 2024
1 parent 98fb51e commit 2adc607
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.Arrays;

import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.network.chat.Component;
Expand Down Expand Up @@ -127,7 +128,7 @@ public void draw(
var text = AAEText.ReactionChamberEnergy.text(recipe.getEnergy() / 1000);
FormattedCharSequence formattedcharsequence = text.getVisualOrderText();
var textX = getWidth() / 2 + 4 - font.width(formattedcharsequence) / 2;
guiGraphics.drawString(font, text, textX, 66, AAEText.TOOLTIP_DEFAULT_COLOR.getColor(), false);
guiGraphics.drawString(font, text, textX, 66, ChatFormatting.DARK_GRAY.getColor(), false);

bolt.draw(guiGraphics, textX - 12, 64);
}
Expand Down

0 comments on commit 2adc607

Please sign in to comment.