Connector icon indicating copy to clipboard operation
Connector copied to clipboard

[Feature Request] API for loading fabric mods for the other mod locators

Open SettingDust opened this issue 1 year ago • 0 comments

Below is targeting 1.20.1 Forge

For now. All the logic is private in https://github.com/Sinytra/Connector/blob/1.20.1/src/main/java/org/sinytra/connector/locator/ConnectorLocator.java My mod is adding a mod locator that will load mods from the other directory. And provide config GUI for users to disable them by directory or mod ID. connector.additionalModLocations is lacking the folder information. Need an API like ConnectorLocator#addCandidates(Path... paths) for loading the mods with connector locator. Since connector's is the last one. It's possible to add the path in any normal mod locator

For now, I have to pass the folders to connector.additionalModLocations and copy(or invoking with reflection?) the ConnectorLocator#filterPaths and transform the jars to get the directory and mod id

Or an API that can get original jar path from the mod info?

SettingDust avatar Oct 05 '24 09:10 SettingDust