Don't send a register unless I have channels. Add the channel to the mod channels list.

This commit is contained in:
Christian Weeks 2012-04-08 01:11:32 -04:00
parent 83730ee9ec
commit 8fa4c1645c
2 changed files with 4 additions and 1 deletions

View file

@ -137,6 +137,7 @@ public class FMLCommonHandler
}
list.add(channelName);
modChannels.put(channelName, container);
}
/**

View file

@ -399,8 +399,10 @@ 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;
if (packet.field_44003_b>0) {
networkManager.func_745_a(packet);
}
}
public void announceLogin(EntityPlayer player) {
for (ModContainer mod : Loader.getModList())