diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/chat/ChatExtras.java b/Client/src/main/java/de/com/baseband/client/feature/modules/chat/ChatExtras.java index a7d3aca..63a1652 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/chat/ChatExtras.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/chat/ChatExtras.java @@ -13,9 +13,7 @@ import de.com.baseband.client.util.adapt.Marker; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.network.play.server.SPacketChat; -import net.minecraft.util.text.Style; import net.minecraft.util.text.TextComponentString; -import net.minecraft.util.text.TextFormatting; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @@ -78,8 +76,7 @@ public class ChatExtras extends Feature { @SubscribeEvent public void onChat(ClientChatReceivedEvent t) { if (chatTimestamps) { - TextComponentString newTextComponentString = new TextComponentString("[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "]" + ChatFormatting.RESET + " "); - newTextComponentString.setStyle(new Style().setColor(TextFormatting.LIGHT_PURPLE)); + TextComponentString newTextComponentString = new TextComponentString(ChatFormatting.LIGHT_PURPLE + "[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "]" + ChatFormatting.RESET + " "); newTextComponentString.appendSibling(t.getMessage()); t.setMessage(newTextComponentString); }