mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix HandshakeHandler potentially skipping last packet (#10787)
This commit is contained in:
1 parent
64caebe63c
commit
723799cdb8
1 file changed
+1
-1
@@ -374,7 +374,7 @@ public class HandshakeHandler
|
||||
});
|
||||
|
||||
// we're done when sentMessages is empty
|
||||
if (sentMessages.isEmpty() && packetPosition >= messageList.size()-1 && pendingFutures.isEmpty()) {
|
||||
if (sentMessages.isEmpty() && packetPosition >= messageList.size() && pendingFutures.isEmpty()) {
|
||||
// clear ourselves - we're done!
|
||||
this.manager.channel().attr(NetworkConstants.FML_HANDSHAKE_HANDLER).set(null);
|
||||
LOGGER.debug(FMLHSMARKER, "Handshake complete!");
|
||||
|
||||
Reference in new issue
Block a user