From cc0cccdc3ec5555d0d3a5bc98feedfa5a3e8096e Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 31 Jan 2022 20:36:42 +0100 Subject: [PATCH] debug --- serverCommunication/serverCommunication.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index b34dbe3..d060310 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -46,6 +46,7 @@ func AckHandler() { logger.Minecraft.Println("ackHandler mc", msg.TrySendCount, kraSettingsConfig.Cfg.WebSocket.AckTimeouts[msg.TrySendCount], currentTime.UnixMilli()-msg.Time.UnixMilli()) if int(currentTime.UnixMilli())-int(msg.Time.UnixMilli()) > kraSettingsConfig.Cfg.WebSocket.AckTimeouts[msg.TrySendCount] { + logger.Minecraft.Println("here") msg.Time = time.Now() err := mcClient.SendBinaryMessage(msg.MessageRaw) @@ -53,6 +54,8 @@ func AckHandler() { if err != nil { logger.Minecraft.Println("ackHandler err sending msg", err) } + } else { + logger.Minecraft.Println("ok here") } if msg.TrySendCount < 4 {