Skip to content

Commit

Permalink
Make mod name tooltip italic
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 28, 2015
1 parent 384b3ae commit 84e6295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/mezz/jei/TooltipEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import mezz.jei.config.Config;

public class TooltipEventHandler {
private static final String chatFormatting = EnumChatFormatting.BLUE.toString() + EnumChatFormatting.ITALIC.toString();

@SubscribeEvent
public void onToolTip(@Nonnull ItemTooltipEvent event) {
if (!Config.tooltipModNameEnabled) {
Expand All @@ -30,6 +32,6 @@ public void onToolTip(@Nonnull ItemTooltipEvent event) {
}

String modName = JEIManager.itemRegistry.getModNameForItem(item);
event.toolTip.add(EnumChatFormatting.BLUE + modName);
event.toolTip.add(chatFormatting + modName);
}
}

0 comments on commit 84e6295

Please sign in to comment.