diff --git a/gradle.properties b/gradle.properties index fdc06a5..364efa0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -multi_filament_version=0.2.0 +multi_filament_version=0.2.1 asm_version=9.5 unpick_version=2.3.0 \ No newline at end of file diff --git a/src/main/java/net/legacyfabric/multifilament/MultiFilamentExtension.java b/src/main/java/net/legacyfabric/multifilament/MultiFilamentExtension.java index f515d95..532d71d 100644 --- a/src/main/java/net/legacyfabric/multifilament/MultiFilamentExtension.java +++ b/src/main/java/net/legacyfabric/multifilament/MultiFilamentExtension.java @@ -49,14 +49,13 @@ public MultiFilamentExtension() { protected void createTasks() { DownloadTask downloadIntermediary = getProject().getTasks().create("downloadIntermediary", DownloadTask.class, downloadTask -> { - downloadTask.setGroup(getBuildMappingGroup().get()); +// downloadTask.setGroup(getBuildMappingGroup().get()); downloadTask.getUrl().set( - getIntermediaryProvider() - .getIntermediaryURL(getMinecraftVersion().get()) + getMinecraftVersion().map(v -> getIntermediaryProvider().getIntermediaryURL(v)) + ); + downloadTask.getOutput().set(getMinecraftCacheDirectory().flatMap( + dir -> getMinecraftVersion().map(v -> dir.file(v + "-intermediary.tiny"))) ); - downloadTask.getOutput().set(getMinecraftCacheDirectory().get().file( - getMinecraftVersion().get() + "-intermediary.tiny" - )); }); VersionifyFilterMappingsTask versionifyMappingsFilter = getProject().getTasks().create("versionifyMappingsFilter", VersionifyFilterMappingsTask.class, task -> {