fixer
Some checks failed
/ Build BaseBand DSM & Broadway (push) Has been cancelled

This commit is contained in:
Jess H 2024-06-17 10:32:40 +01:00
parent 3cfcf255fc
commit efb4023b16
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19

View file

@ -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);
}