From 520f960cd6f17c1eb6f3d4c29ca2aeaaf31c2d9c Mon Sep 17 00:00:00 2001
From: Äkwav <ekwav@coflnet.com>
Date: Tue, 31 Oct 2023 19:22:18 +0100
Subject: fix #107

---
 src/main/java/de/torui/coflsky/network/WSClientWrapper.java | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

(limited to 'src/main/java')

diff --git a/src/main/java/de/torui/coflsky/network/WSClientWrapper.java b/src/main/java/de/torui/coflsky/network/WSClientWrapper.java
index eccc0e7..2f860d7 100644
--- a/src/main/java/de/torui/coflsky/network/WSClientWrapper.java
+++ b/src/main/java/de/torui/coflsky/network/WSClientWrapper.java
@@ -56,12 +56,10 @@ public class WSClientWrapper {
     
     
     public boolean startConnection() {
-    	
     	if(isRunning)
     		return false;
     	
     	for(String s : uris) {
-    		
     		System.out.println("Trying connection with uri=" + s);
     		
     		if(initializeNewSocket(s)) {
@@ -71,17 +69,15 @@ public class WSClientWrapper {
     	
     	Minecraft.getMinecraft().thePlayer.addChatMessage(
     			new ChatComponentText("Cofl could not establish a connection to any server!"+
-    	"\nIf you think this is a bug. Please report it on our Discord and include the ")
+    	"\nIf you use a vpn/proxy please try connecting without it.\n"
+		"If that does not work please contact us on our ")
     			.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))
-    			.appendSibling(new ChatComponentText("logs!")
+    			.appendSibling(new ChatComponentText("discord!")
     							.setChatStyle(new ChatStyle()
-								.setUnderlined(true)
 								.setColor(EnumChatFormatting.BLUE)
-    							.setChatClickEvent(new ClickEvent(Action.OPEN_URL, "https://www.youtube.com/watch?v=9Kb29wEcMcs")))));
+    							.setChatClickEvent(new ClickEvent(Action.OPEN_URL, "https://discord.gg/wvKXfTgCfb")))));
     	
     	return false;
-    	//throw new Error("Could not connect to any websocket remote!");
-    	
     }
     
     
-- 
cgit