Local multiplayer initial commit
This commit is contained in:
@@ -176,7 +176,7 @@ public class NetworkIO {
|
||||
public static ByteBuffer writeServerData(){
|
||||
int maxlen = 32;
|
||||
|
||||
String host = (headless ? "Server" : player.name);
|
||||
String host = (headless ? "Server" : players[0].name);
|
||||
String map = world.getMap().name;
|
||||
|
||||
host = host.substring(0, Math.min(host.length(), maxlen));
|
||||
|
||||
@@ -85,9 +85,10 @@ public class Packets {
|
||||
|
||||
public static class ConnectPacket implements Packet{
|
||||
public int version;
|
||||
public String name;
|
||||
public int players;
|
||||
public String[] names;
|
||||
public boolean android;
|
||||
public int color;
|
||||
public int[] colors;
|
||||
public byte[] uuid;
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user