https://github.com/GameModsBR/VoiceChat/tree/master/src/main/java/net/gliby/voicechat/common/networking/packets
The issue is with the onMesssage code, If I recall correctly this function gets called on the network thread, possible concurrency issue, as well as stressing the network thread. A simple fix would be to schedule the code inside the function, so it would execute on the main Minecraft thread.
I'll be reporting issues with my own code, if anyone wants to fix 'em.
https://github.com/GameModsBR/VoiceChat/tree/master/src/main/java/net/gliby/voicechat/common/networking/packets The issue is with the onMesssage code, If I recall correctly this function gets called on the network thread, possible concurrency issue, as well as stressing the network thread. A simple fix would be to schedule the code inside the function, so it would execute on the main Minecraft thread. I'll be reporting issues with my own code, if anyone wants to fix 'em.