From efb4023b1619333e270263bd043aad5eafd1a034 Mon Sep 17 00:00:00 2001 From: Jess Date: Mon, 17 Jun 2024 10:32:40 +0100 Subject: [PATCH] fixer --- .../com/baseband/client/feature/modules/chat/ChatExtras.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }