Fix another locked file, only a minor one this time

dev/0.11
modmuss50 2019-01-04 20:27:27 +00:00
parent 8827983287
commit a6507ef7a1
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ public class MinecraftProvider extends DependencyProvider {
initFiles(project);
downloadMcJson();
versionInfo = gson.fromJson(new FileReader(MINECRAFT_JSON), MinecraftVersionInfo.class);
FileReader reader = new FileReader(MINECRAFT_JSON);
versionInfo = gson.fromJson(reader, MinecraftVersionInfo.class);
reader.close();
// Add Loom as an annotation processor
addDependency(project.files(this.getClass().getProtectionDomain().getCodeSource().getLocation()), project, "compileOnly");