Improved LAN discovery-- fixed #55
This commit is contained in:
@@ -3,9 +3,11 @@ package io.anuke.mindustry.net;
|
||||
public class Address {
|
||||
public final String name;
|
||||
public final String address;
|
||||
public final int players;
|
||||
|
||||
public Address(String name, String address){
|
||||
public Address(String name, String address, int players){
|
||||
this.name = name;
|
||||
this.address = address;
|
||||
this.players = players;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ public class Net{
|
||||
private static IntMap<StreamBuilder> streams = new IntMap<>();
|
||||
private static AsyncExecutor executor = new AsyncExecutor(4);
|
||||
|
||||
/**Sets the client loaded status, or whether it will recieve normal packets from the server.*/
|
||||
public static void setClientLoaded(boolean loaded){
|
||||
clientLoaded = loaded;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user