Fix a problem with network ids

This commit is contained in:
Christian 2012-08-23 16:38:34 -04:00
parent 87fa59b0f7
commit 72097d5bf5

View file

@ -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)