From 3a259a871a0a347e5e953e2871cacb856b1d2617 Mon Sep 17 00:00:00 2001 From: M R S E <25187502+Sanduhr32@users.noreply.github.com> Date: Sun, 19 Jul 2026 06:46:15 +0200 Subject: [PATCH] Correctly apply color formatting to stored essentia (#138) --- .../common/items/ItemEssentiaCell.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; }