Don't send a register unless I have channels. Add the channel to the mod channels list.
This commit is contained in:
parent
83730ee9ec
commit
8fa4c1645c
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue