Change type from ExceptionalSupplier to AuthlibInjectorDownloader

This commit is contained in:
yushijinhun
2018-11-23 17:46:59 +08:00
parent 875b0c27ef
commit a4e4782f2f
4 changed files with 15 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ public final class Accounts {
public static final OfflineAccountFactory FACTORY_OFFLINE = OfflineAccountFactory.INSTANCE;
public static final YggdrasilAccountFactory FACTORY_YGGDRASIL = new YggdrasilAccountFactory(MojangYggdrasilProvider.INSTANCE);
public static final AuthlibInjectorAccountFactory FACTORY_AUTHLIB_INJECTOR = new AuthlibInjectorAccountFactory(
new AuthlibInjectorDownloader(Metadata.HMCL_DIRECTORY, DownloadProviders::getDownloadProvider)::getArtifactInfo,
new AuthlibInjectorDownloader(Metadata.HMCL_DIRECTORY, DownloadProviders::getDownloadProvider),
Accounts::getOrCreateAuthlibInjectorServer);
// ==== login type / account factory mapping ====