Fixed StackOverFlow exception thrown with certain block designs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user