diff --git a/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java b/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java index 55881d8d..9fcad017 100644 --- a/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java +++ b/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java @@ -153,7 +153,14 @@ public void apply(Project project) { ideIntegration.runTaskOnProjectSync(extension.getIdeSyncTasks()); var dependencyFactory = project.getDependencyFactory(); - Provider versionCapabilities = extension.getVersion().map(VersionCapabilities::ofNeoForgeVersion) + Provider versionCapabilities = extension.getVersion().map(v -> { + // Temporary until we have imperative configuration + if (project.getPlugins().hasPlugin("net.neoforged.moddev.legacyforge")) { + return VersionCapabilities.ofForgeVersion(v); + } else { + return VersionCapabilities.ofNeoForgeVersion(v); + } + }) .orElse(extension.getNeoFormVersion().map(VersionCapabilities::ofNeoFormVersion)) .orElse(VersionCapabilities.latest());