From e1b4a150c3be225759ae9f2441624c2c9efeb13b Mon Sep 17 00:00:00 2001 From: malte0811 Date: Tue, 4 Dec 2018 21:22:01 +0100 Subject: [PATCH] Fix race condition causing the FML handshake to hang (#5222) --- .../net/minecraftforge/fml/network/FMLHandshakeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/network/FMLHandshakeHandler.java b/src/main/java/net/minecraftforge/fml/network/FMLHandshakeHandler.java index 396d7ade4..7a0eb6259 100644 --- a/src/main/java/net/minecraftforge/fml/network/FMLHandshakeHandler.java +++ b/src/main/java/net/minecraftforge/fml/network/FMLHandshakeHandler.java @@ -242,8 +242,8 @@ public class FMLHandshakeHandler { NetworkRegistry.LoginPayload message = messageList.get(packetPosition); LOGGER.debug(FMLHSMARKER, "Sending ticking packet info '{}' to '{}' sequence {}", message.getMessageContext(), message.getChannelName(), packetPosition); - loginWrapper.sendServerToClientLoginPacket(message.getChannelName(), message.getData(), packetPosition, this.manager); sentMessages.add(packetPosition); + loginWrapper.sendServerToClientLoginPacket(message.getChannelName(), message.getData(), packetPosition, this.manager); packetPosition++; }