Skip to content

Commit ce0ff72

Browse files
committed
Fix compiler errors due to gradle caching issue.
1 parent 93d84e7 commit ce0ff72

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

src/mcp/java/net/minecraftforge/gradle/mcp/function/DownloadCoreFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DownloadCoreFunction extends DownloadFileFunction {
3636
private static DownloadInfo getDownloadInfo(MCPEnvironment environment, String artifact, String extension) {
3737
try {
3838
Gson gson = new Gson();
39-
Reader reader = new FileReader(environment.getStepOutput(DownloadVersionJSONFunction.class));
39+
Reader reader = new FileReader(environment.getStepOutput("downloadManifest"));
4040
JsonObject json = gson.fromJson(reader, JsonObject.class);
4141
reader.close();
4242

src/mcp/java/net/minecraftforge/gradle/mcp/function/DownloadVersionJSONFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public DownloadVersionJSONFunction() {
4040
private static DownloadInfo getDownloadInfo(MCPEnvironment environment) {
4141
try {
4242
Gson gson = new Gson();
43-
Reader reader = new FileReader(environment.getStepOutput(DownloadManifestFunction.class));
43+
Reader reader = new FileReader(environment.getStepOutput("downloadManifest"));
4444
JsonObject json = gson.fromJson(reader, JsonObject.class);
4545
reader.close();
4646

src/mcp/java/net/minecraftforge/gradle/mcp/function/ListLibrariesFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public File execute(MCPEnvironment environment) {
4747

4848
try {
4949
Gson gson = new Gson();
50-
Reader reader = new FileReader(environment.getStepOutput(DownloadVersionJSONFunction.class));
50+
Reader reader = new FileReader(environment.getStepOutput("downloadJson"));
5151
JsonObject json = gson.fromJson(reader, JsonObject.class);
5252
reader.close();
5353

src/mcp/java/net/minecraftforge/gradle/mcp/util/MCPEnvironment.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ public File getStepOutput(String name) {
7777
return step.output;
7878
}
7979

80-
public File getStepOutput(Class<? extends MCPFunction> type) {
81-
for (MCPRuntime.Step step : runtime.steps.values()) {
82-
if (step.isOfType(type)) {
83-
return step.output;
84-
}
85-
}
86-
throw new IllegalArgumentException("Could not find a step of type " + type.getName());
87-
}
88-
8980
public MinecraftVersion getMinecraftVersion() {
9081
return this.mcVersion;
9182
}

0 commit comments

Comments
 (0)