Use NeoForge-specific dependency configuration

This is only for the "(neo)forge" configuration exposed
as API. The other configurations remain the same.
This commit is contained in:
Juuz
2023-10-31 18:40:13 +02:00
parent 3c597e01bf
commit 3965893f45
2 changed files with 2 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ public class ForgeProvider extends DependencyProvider {
@Override
public String getTargetConfig() {
return Constants.Configurations.FORGE;
return platform == ModPlatform.NEOFORGE ? Constants.Configurations.NEOFORGE : Constants.Configurations.FORGE;
}
/**

View File

@@ -74,6 +74,7 @@ public class Constants {
public static final String SRG = "srg";
public static final String MCP_CONFIG = "mcp";
public static final String FORGE = "forge";
public static final String NEOFORGE = "neoforge";
public static final String FORGE_USERDEV = "forgeUserdev";
public static final String FORGE_INSTALLER = "forgeInstaller";
public static final String FORGE_UNIVERSAL = "forgeUniversal";