diff options
author | Florian Rinke <develop@torui.de> | 2021-10-11 20:55:26 +0200 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-10-11 20:55:26 +0200 |
commit | 730982080309fd71134f4922d77591320a26874c (patch) | |
tree | 81d88d5999d6aa195171e9f277e4f126f24d45b4 /src | |
parent | fc4baf800cb5526350a98eadda0ce70e93f24bc6 (diff) | |
download | COFL-730982080309fd71134f4922d77591320a26874c.tar.gz COFL-730982080309fd71134f4922d77591320a26874c.tar.bz2 COFL-730982080309fd71134f4922d77591320a26874c.zip |
misc fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/torui/coflsky/websocket/WSClientWrapper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/websocket/WSClientWrapper.java b/src/main/java/de/torui/coflsky/websocket/WSClientWrapper.java index 7d66600..30ec739 100644 --- a/src/main/java/de/torui/coflsky/websocket/WSClientWrapper.java +++ b/src/main/java/de/torui/coflsky/websocket/WSClientWrapper.java @@ -12,6 +12,8 @@ import de.torui.coflsky.CoflSky; import de.torui.coflsky.core.Command; import de.torui.coflsky.core.StringCommand; import de.torui.coflsky.minecraft_integration.PlayerDataProvider; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ChatComponentText; import de.torui.coflsky.minecraft_integration.CoflSessionManager; @@ -32,6 +34,7 @@ public class WSClientWrapper { socket.stop(); System.out.println("Sleeping..."); + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Lost connection to Coflnet, trying to reestablish the connection in 2 Seconds...")); try { Thread.sleep(2000); |