Added in-game changelogs

This commit is contained in:
Anuken
2018-03-09 17:11:01 -05:00
parent 1d83e94ad6
commit 8743a60d02
12 changed files with 473 additions and 349 deletions

View File

@@ -248,9 +248,9 @@ public class Net{
active = false;
}
public static void http(String method, String content, Consumer<String> listener){
public static void http(String url, String method, Consumer<String> listener, Consumer<Throwable> failure){
HttpRequest req = new HttpRequestBuilder().newRequest()
.method(method).content(content).url(serverURL + "/servers").build();
.method(method).url(url).build();
Gdx.net.sendHttpRequest(req, new HttpResponseListener() {
@Override
@@ -260,8 +260,7 @@ public class Net{
@Override
public void failed(Throwable t) {
Log.err("HTTP error:");
Log.err(t);
failure.accept(t);
}
@Override