Implemented LAN discovery

This commit is contained in:
Anuken
2018-01-01 22:13:20 -05:00
parent 24248df4af
commit 8a38160124
9 changed files with 115 additions and 36 deletions

View File

@@ -55,7 +55,7 @@ public class Net{
/**Starts discovering servers on a different thread. Does not work with GWT.
* Callback is run on the main libGDX thread.*/
public void discoverServers(Consumer<Array<Address>> cons){
public static void discoverServers(Consumer<Array<Address>> cons){
executor.submit(() -> {
Array<Address> arr = clientProvider.discover();
Gdx.app.postRunnable(() -> {