Fixed server crash / Added graphics blending methods

This commit is contained in:
Anuken
2018-03-31 14:04:55 -04:00
parent ed276ac79e
commit 537e25af9f

View File

@ -423,7 +423,13 @@ public class KryoServer implements ServerProvider {
byte[] out = Base64Coder.decode(message);
ByteBuffer buffer = ByteBuffer.wrap(out);
Object o = serializer.read(buffer);
Gdx.app.postRunnable(() -> Net.handleServerReceived(id, o));
Gdx.app.postRunnable(() -> {
try {
Net.handleServerReceived(id, o);
}catch (Exception e){
e.printStackTrace();
}
});
}
}catch (Exception e){
Log.err(e);