Skip to content

Commit 870739a

Browse files
committed
Fixed memory card tooltip color
1 parent 9e0b636 commit 870739a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/de/srendi/advancedperipherals/common/items/MemoryCardItem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import de.srendi.advancedperipherals.common.configuration.APConfig;
44
import de.srendi.advancedperipherals.common.items.base.BaseItem;
5+
import de.srendi.advancedperipherals.common.util.EnumColor;
56
import net.minecraft.network.chat.Component;
67
import net.minecraft.world.InteractionHand;
78
import net.minecraft.world.InteractionResultHolder;
@@ -28,7 +29,7 @@ public boolean isEnabled() {
2829
public void appendHoverText(ItemStack stack, @Nullable Level levelIn, List<Component> tooltip, TooltipFlag flagIn) {
2930
super.appendHoverText(stack, levelIn, tooltip, flagIn);
3031
if (stack.getOrCreateTag().contains("owner"))
31-
tooltip.add(Component.translatable("item.advancedperipherals.tooltip.memory_card.bound", stack.getOrCreateTag().getString("owner")));
32+
tooltip.add(EnumColor.buildTextComponent(Component.translatable("item.advancedperipherals.tooltip.memory_card.bound", stack.getOrCreateTag().getString("owner"))));
3233

3334
}
3435

0 commit comments

Comments
 (0)