mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-23 17:19:16 +00:00
Fix coadloads
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user