mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Fix potential rance condition in connecting to vanilla servers as well. And move latch into client side only.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user