Local multiplayer initial commit

This commit is contained in:
Anuken
2018-05-11 07:59:10 -07:00
parent 90b9ba71de
commit 959f756ff5
11 changed files with 350 additions and 299 deletions

View File

@@ -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));

View File

@@ -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