Compleetly skip FML handshake for Vanilla connections. Should fix race condition. Closes #3084

This commit is contained in:
LexManos 2016-08-08 17:35:15 -07:00
parent 69af6a9b8c
commit 62ec59103a
1 changed files with 1 additions and 1 deletions

View File

@ -147,12 +147,12 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler<Packet<?>> im
public void serverToClientHandshake(EntityPlayerMP player)
{
this.player = player;
insertIntoChannel();
Boolean fml = this.manager.channel().attr(NetworkRegistry.FML_MARKER).get();
if (fml != null && fml)
{
//FML on client, send server hello
//TODO: Make this cleaner as it uses netty magic 0.o
insertIntoChannel();
}
else
{