From 859775d7b5b1502999ced7cdfb68e9f865916a64 Mon Sep 17 00:00:00 2001 From: micle Date: Wed, 14 Jan 2026 00:44:46 +0100 Subject: [PATCH] Inverted colors to improve readability of messages. --- .../item/totem/TotemItem.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java b/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java index 12b2820..ac25f6a 100644 --- a/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java +++ b/src/main/java/dev/micle/totem_of_reviving/item/totem/TotemItem.java @@ -105,8 +105,8 @@ public abstract class TotemItem extends Item { setTotemData(itemStack, totemData); return LangAsset.MESSAGE_NOW_TARGETING.getComponent( - Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.GRAY) - ).withStyle(ChatFormatting.WHITE); + Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.WHITE) + ).withStyle(ChatFormatting.GRAY); } public static boolean chargeTotem(ItemStack totemStack, ItemStack chargeStack) { @@ -155,20 +155,20 @@ public abstract class TotemItem extends Item { if (!target.isSpectator()) { return LangAsset.MESSAGE_PLAYER_IS_NOT_DEAD.getComponent( - Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.GRAY) - ).withStyle(ChatFormatting.WHITE); + Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.WHITE) + ).withStyle(ChatFormatting.GRAY); } try (ServerLevel targetLevel = target.serverLevel()) { if (!targetLevel.equals(user.serverLevel()) && !config.getCanReviveAcrossDimensions()) { return LangAsset.MESSAGE_PLAYER_IS_IN_ANOTHER_DIMENSION.getComponent( - Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.GRAY) - ).withStyle(ChatFormatting.WHITE); + Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.WHITE) + ).withStyle(ChatFormatting.GRAY); } } catch (IOException e) { return LangAsset.MESSAGE_UNABLE_TO_GET_PLAYER_WORLD.getComponent( - Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.DARK_RED) - ).withStyle(ChatFormatting.RED); + Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.RED) + ).withStyle(ChatFormatting.DARK_RED); } if (!totemItem.canAffordTarget(totemData)) { @@ -193,8 +193,8 @@ public abstract class TotemItem extends Item { itemStack.hurtAndBreak(1, user, slot); return LangAsset.MESSAGE_SUCCESSFULLY_REVIVED_TARGET.getComponent( - Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.DARK_GREEN) - ).withStyle(ChatFormatting.GREEN); + Component.literal(totemData.getTargetName()).withStyle(ChatFormatting.GREEN) + ).withStyle(ChatFormatting.DARK_GREEN); } @Override