diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index d060310..9c96619 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -54,13 +54,13 @@ func AckHandler() { if err != nil { logger.Minecraft.Println("ackHandler err sending msg", err) } + + if msg.TrySendCount < 4 { + msg.TrySendCount++ + } } else { logger.Minecraft.Println("ok here") } - - if msg.TrySendCount < 4 { - msg.TrySendCount++ - } } } }