From e8823fab36db263af1a0e5bbb4eb1fe025264ba6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 3 Mar 2020 12:11:35 -0500 Subject: [PATCH] More concise stream class --- tools/src/mindustry/tools/FontGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/mindustry/tools/FontGenerator.java b/tools/src/mindustry/tools/FontGenerator.java index 2ebb8fd2a0..f38766f37d 100644 --- a/tools/src/mindustry/tools/FontGenerator.java +++ b/tools/src/mindustry/tools/FontGenerator.java @@ -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); }