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