Fixed StackOverFlow exception thrown with certain block designs

This commit is contained in:
Anuken
2018-02-18 11:31:09 -05:00
parent dbd84103cb
commit 1c3bad0aca
8 changed files with 17 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ public class KryoServer implements ServerProvider {
int lastconnection = 0;
public KryoServer(){
server = new Server(4096*2, 2048, connection -> new ByteSerializer()); //TODO tweak
server = new Server(4096*2, 2048, connection -> new ByteSerializer());
server.setDiscoveryHandler((datagramChannel, fromAddress) -> {
ByteBuffer buffer = KryoRegistrator.writeServerData();
buffer.position(0);