diff --git a/src/main/java/thaumicenergistics/common/items/ItemEssentiaCell.java b/src/main/java/thaumicenergistics/common/items/ItemEssentiaCell.java index 34362cec..99e4e352 100644 --- a/src/main/java/thaumicenergistics/common/items/ItemEssentiaCell.java +++ b/src/main/java/thaumicenergistics/common/items/ItemEssentiaCell.java @@ -114,13 +114,10 @@ public class ItemEssentiaCell extends Item implements ICellHandler, IStorageCell for (AEEssentiaStack stack : list) { if (stack != null) { - // Get the chat color - String aspectChatColor = stack.getChatColor(); - // Build the display string String aspectInfo = String.format( - " %s%s%s x %d", - aspectChatColor, + " &#%06x%s%s x %d", + stack.getAspect().getColor(), stack.getDisplayName(player), EnumChatFormatting.WHITE, stack.getStackSize()); @@ -144,7 +141,7 @@ public class ItemEssentiaCell extends Item implements ICellHandler, IStorageCell for (AEEssentiaStack stack : cellHandler.getPartitionList().getItems()) { if (stack == null) continue; Aspect aspect = stack.getAspect(); - list.add(String.format(" %s%s", aspect.getChatcolor(), stack.getDisplayName(player))); + list.add(String.format(" &#%06x%s", aspect.getColor(), stack.getDisplayName(player))); } return list; }