mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Correctly apply color formatting to stored essentia (#138)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user