use of org.spongepowered.forge.applaunch.loading.moddiscovery.library.LibraryManager in project SpongeCommon by SpongePowered.
the class ForgeBootstrap method initArguments.
@Override
public void initArguments(final Map<String, ?> arguments) {
final Environment env = Launcher.INSTANCE.environment();
ForgePluginPlatform.bootstrap(env);
this.libraryManager = new LibraryManager(env.getProperty(ForgeProductionBootstrap.Keys.CHECK_LIBRARY_HASHES.get()).orElse(true), env.getProperty(ForgeProductionBootstrap.Keys.LIBRARIES_DIRECTORY.get()).orElseThrow(() -> new IllegalStateException("no libraries available")), ForgeBootstrap.class.getResource("libraries.json"));
}
Aggregations