From db8086d6ad28bd72c8b117fa79ed17eb41a4aca1 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 16 Nov 2020 14:56:48 -0800 Subject: [PATCH] Allow URLs in chat again --- src/main/java/com/gmail/nossr50/util/text/TextUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/text/TextUtils.java b/src/main/java/com/gmail/nossr50/util/text/TextUtils.java index 1f1b24c2c..d326a62a7 100644 --- a/src/main/java/com/gmail/nossr50/util/text/TextUtils.java +++ b/src/main/java/com/gmail/nossr50/util/text/TextUtils.java @@ -117,7 +117,7 @@ public class TextUtils { @NotNull private static LegacyComponentSerializer getSerializer() { - return LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().character('&').hexCharacter('#').build(); + return LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().character('&').hexCharacter('#').extractUrls().build(); } public static @NotNull String sanitizeForSerializer(@NotNull String string) {