If the server sends the resource pack right on connect (rather than when switching to a sub-server), then `mc.getNetworkHandler()` will be null.
If the server sends the resource pack right on connect (rather than when switching to a sub-server), then `mc.getNetworkHandler()` will be null.