Attempt to fix another race condition related to reading NetClientHandler.

This commit is contained in:
Lex Manos 2014-05-07 13:31:16 -07:00
parent e69004b50e
commit 18aed8bf1b

View file

@ -834,6 +834,7 @@ 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)
{
bus.post(new FMLNetworkEvent.CustomPacketRegistrationEvent<NetHandlerPlayClient>(manager, channelSet, channel, side, NetHandlerPlayClient.class));