9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-23 17:19:16 +00:00

Fix coadloads

This commit is contained in:
Daniel Mills
2021-06-06 01:48:26 -04:00
parent c19857d463
commit 574860f117
2 changed files with 27 additions and 52 deletions

View File

@@ -394,7 +394,7 @@ public class Iris extends VolmitPlugin
{
String h = IO.hash(name + "*" + url);
File f = Iris.instance.getDataFile("cache", h.substring(0, 2), h.substring(3, 5), h);
Iris.verbose("Download " + name + " -> " + url);
try(BufferedInputStream in = new BufferedInputStream(new URL(url).openStream()); FileOutputStream fileOutputStream = new FileOutputStream(f))
{
byte[] dataBuffer = new byte[1024];
@@ -405,9 +405,9 @@ public class Iris extends VolmitPlugin
}
}
catch(IOException ignored)
catch(IOException e)
{
e.printStackTrace();
}
return f;