Fix potential rance condition in connecting to vanilla servers as well. And move latch into client side only.

This commit is contained in:
Lex Manos committed 2014-05-07 13:54:22 -07:00
1 parent 3612ad0c25
commit c73a2076e3
2 files changed
+3 -1

No files matched your search

@@ -834,9 +834,9 @@ public class FMLClientHandler implements IFMLSidedHandler
@Override
public void fireNetRegistrationEvent(EventBus bus, NetworkManager manager, Set<String> channelSet, String channel, Side side)
{
waitForPlayClient();
if (side == Side.CLIENT)
{
waitForPlayClient();
bus.post(new FMLNetworkEvent.CustomPacketRegistrationEvent<NetHandlerPlayClient>(manager, channelSet, channel, side, NetHandlerPlayClient.class));
}
else