Output cleanup

This commit is contained in:
Anuken
2018-12-02 17:04:55 -05:00
parent e33c863162
commit 9c01256029
2 changed files with 2 additions and 3 deletions

View File

@@ -281,6 +281,7 @@ public class NetServer extends Module{
} }
player.remove(); player.remove();
netServer.connections.remove(player.con.id); netServer.connections.remove(player.con.id);
Log.info("&lc{0} has disconnected.", player.name);
} }
private static float compound(float speed, float drag){ private static float compound(float speed, float drag){

View File

@@ -62,7 +62,7 @@ public class KryoServer implements ServerProvider {
c.id = kn.id; c.id = kn.id;
c.addressTCP = ip; c.addressTCP = ip;
Log.info("&bRecieved connection: {0} / {1}. Kryonet ID: {2}", c.id, c.addressTCP, connection.getID()); Log.info("&bRecieved connection: {0}", c.addressTCP);
connections.add(kn); connections.add(kn);
threads.runDelay(() -> Net.handleServerReceived(kn.id, c)); threads.runDelay(() -> Net.handleServerReceived(kn.id, c));
@@ -76,8 +76,6 @@ public class KryoServer implements ServerProvider {
Disconnect c = new Disconnect(); Disconnect c = new Disconnect();
c.id = k.id; c.id = k.id;
Log.info("&bLost connection: {0}", k.id);
threads.runDelay(() -> { threads.runDelay(() -> {
Net.handleServerReceived(k.id, c); Net.handleServerReceived(k.id, c);
connections.remove(k); connections.remove(k);