Network, UI, renderer fixes

This commit is contained in:
Anuken
2018-01-11 23:15:53 -05:00
parent e91aa62b4a
commit 1762af5d4c
10 changed files with 56 additions and 28 deletions

View File

@@ -86,7 +86,9 @@ public class KryoServer implements ServerProvider {
try{
Net.handleServerReceived(object, connection.getID());
}catch (Exception e){
Gdx.app.postRunnable(() -> {throw new RuntimeException(e);});
//...do absolutely nothing.
e.printStackTrace();
//Gdx.app.postRunnable(() -> {throw new RuntimeException(e);});
}
}
});
@@ -133,7 +135,6 @@ public class KryoServer implements ServerProvider {
@Override
public void sendStream(int id, Streamable stream) {
Connection connection = getByID(id);
UCore.log("Sending stream: " + stream.getClass().getSimpleName() + " / " + stream.stream.available());
connection.addListener(new InputStreamSender(stream.stream, 512) {
int id;