Fix a problem with network ids
This commit is contained in:
parent
87fa59b0f7
commit
72097d5bf5
1 changed files with 5 additions and 2 deletions
|
@ -259,8 +259,11 @@ public class FMLNetworkHandler
|
|||
{
|
||||
Map<String, ModContainer> mods = Loader.instance().getIndexedModList();
|
||||
NetworkModHandler handler = findNetworkModHandler(mods.get(key));
|
||||
handler.setNetworkId(value);
|
||||
networkIdLookup.put(value, handler);
|
||||
if (handler != null)
|
||||
{
|
||||
handler.setNetworkId(value);
|
||||
networkIdLookup.put(value, handler);
|
||||
}
|
||||
}
|
||||
|
||||
public static void onClientConnectionToRemoteServer(NetHandler netClientHandler, String server, int port, NetworkManager networkManager)
|
||||
|
|
Loading…
Reference in a new issue