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

View file

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