Correctly apply color formatting to stored essentia (#138)

This commit is contained in:
M R S E authored and GitHub committed 2026-07-19 00:46:15 -04:00
1 parent a1b2ca7b8f
commit 3a259a871a
1 file changed
+3 -6
@@ -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;
}