mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Updated to new Arc net
This commit is contained in:
parent
0b3dddcc9e
commit
3eb72d6d86
3 changed files with 6 additions and 20 deletions
|
|
@ -14,9 +14,7 @@ public class GenericModTest{
|
|||
static void grabMod(String url){
|
||||
//clear older mods
|
||||
ApplicationTests.testDataFolder.deleteDirectory();
|
||||
Core.net = new Net();
|
||||
Core.net.setBlock(true);
|
||||
Core.net.http(new HttpRequest().url(url).method(HttpMethod.GET), httpResponse -> {
|
||||
new Net().http(new HttpRequest().block(true).url(url).method(HttpMethod.GET), httpResponse -> {
|
||||
try{
|
||||
ApplicationTests.testDataFolder.child("mods").child("test_mod." + (url.endsWith("jar") ? "jar" : "zip")).writeBytes(Streams.copyBytes(httpResponse.getResultAsStream()));
|
||||
}catch(IOException e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue