Skip to content

Commit

Permalink
Woops
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 11, 2024
1 parent e1363ea commit 2f7f888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
multi_filament_version=0.2.1
multi_filament_version=0.2.2

asm_version=9.5
unpick_version=2.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ protected void createTasks() {
DownloadTask downloadIntermediary = getProject().getTasks().create("downloadIntermediary", DownloadTask.class, downloadTask -> {
// downloadTask.setGroup(getBuildMappingGroup().get());
downloadTask.getUrl().set(
getMinecraftVersion().map(v -> getIntermediaryProvider().getIntermediaryURL(v))
minecraftVersionGetter().map(v -> getIntermediaryProvider().getIntermediaryURL(v))
);
downloadTask.getOutput().set(getMinecraftCacheDirectory().flatMap(
dir -> getMinecraftVersion().map(v -> dir.file(v + "-intermediary.tiny")))
dir -> minecraftVersionGetter().map(v -> dir.file(v + "-intermediary.tiny")))
);
});

Expand Down Expand Up @@ -95,13 +95,13 @@ protected void createTasks() {
});
}

public Property<String> getMinecraftVersion() {
private Property<String> minecraftVersionGetter() {
return FilamentExtension.get(getProject()).getMinecraftVersion();
}

public IntermediaryProvider getIntermediaryProvider() {
if (intermediaryProvider == null) {
intermediaryProvider = ProviderHandler.get(getMinecraftVersion().get(), getIntermediaryRevision().get());
intermediaryProvider = ProviderHandler.get(minecraftVersionGetter().get(), getIntermediaryRevision().get());
}

return intermediaryProvider;
Expand All @@ -123,6 +123,6 @@ public DirectoryProperty getLibsDirectory() {
}

public boolean isServerBundled() {
return VersionHelper.isServerBundled(getMinecraftVersion().get());
return VersionHelper.isServerBundled(minecraftVersionGetter().get());
}
}

0 comments on commit 2f7f888

Please sign in to comment.