From bcb57fe1092ef1576c3625c9e47a494ec277709f Mon Sep 17 00:00:00 2001 From: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Date: Sat, 24 Dec 2022 09:07:24 +0000 Subject: Gray tooltip (#1581) * Gray tooltip * Spotless apply for branch gray for #1581 (#1582) * add NEI handler for ic2 fuel rods (#1580) * add NEI handler for ic2 fuel rods Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix typo Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * rename variable to cover up the original intention Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * spotlessApply Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Glease <4586901+Glease@users.noreply.github.com> --- src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java index df11ae22a2..b255fa4ddc 100644 --- a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java +++ b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java @@ -1,6 +1,7 @@ package gregtech.nei; import static codechicken.nei.recipe.RecipeInfo.getGuiOffset; +import static net.minecraft.util.EnumChatFormatting.GRAY; import codechicken.lib.gui.GuiDraw; import codechicken.nei.NEIClientUtils; @@ -378,8 +379,9 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { || (!((FixedPositionedStack) tStack).isChanceBased())) { break; } - currentTip.add( - GT_Utility.trans("150", "Chance: ") + ((FixedPositionedStack) tStack).getChanceText()); + currentTip.add(GRAY + + GT_Utility.trans("150", "Chance: ") + + ((FixedPositionedStack) tStack).getChanceText()); break; } } @@ -389,7 +391,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { || (!((FixedPositionedStack) tStack).isNotConsumed())) { break; } - currentTip.add(GT_Utility.trans("151", "Does not get consumed in the process")); + currentTip.add(GRAY + GT_Utility.trans("151", "Does not get consumed in the process")); break; } } -- cgit