Fix another locked file, only a minor one this time

This commit is contained in:
modmuss50 2019-01-04 20:27:27 +00:00
parent 8827983287
commit a6507ef7a1

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");