mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 23:37:51 +07:00
More concise stream class
This commit is contained in:
@ -31,7 +31,7 @@ public class FontGenerator{
|
|||||||
String session = folder.child("session").readString();
|
String session = folder.child("session").readString();
|
||||||
net.httpGet("http://fontello.com/" + session + "/get", result -> {
|
net.httpGet("http://fontello.com/" + session + "/get", result -> {
|
||||||
try{
|
try{
|
||||||
Streams.copyStream(result.getResultAsStream(), folder.child("font.zip").write());
|
Streams.copy(result.getResultAsStream(), folder.child("font.zip").write());
|
||||||
}catch(IOException e){
|
}catch(IOException e){
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user