mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Don't send a register unless I have channels. Add the channel to the mod channels list.
This commit is contained in:
1 parent
83730ee9ec
commit
8fa4c1645c
2 files changed
+4
-1
No files matched your search
@@ -137,6 +137,7 @@ public class FMLCommonHandler
|
||||
}
|
||||
|
||||
list.add(channelName);
|
||||
modChannels.put(channelName, container);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -399,7 +399,9 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
packet.field_44005_a = "REGISTER";
|
||||
packet.field_44004_c = FMLCommonHandler.instance().getPacketRegistry();
|
||||
packet.field_44003_b = packet.field_44004_c.length;
|
||||
networkManager.func_745_a(packet);
|
||||
if (packet.field_44003_b>0) {
|
||||
networkManager.func_745_a(packet);
|
||||
}
|
||||
}
|
||||
|
||||
public void announceLogin(EntityPlayer player) {
|
||||
|
||||
Reference in new issue
Block a user