Add customizable MTU support (#1068)

* Add customizable MTU support

Fixes clients being unable to connect in rare instances.

* Make config.yml nicer
This commit is contained in:
Camotoy 2020-07-31 19:47:23 -04:00 committed by GitHub
parent af5e8a83ca
commit 7fc14d8956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 1 deletions

View file

@ -253,6 +253,11 @@ public class GeyserSpongeConfiguration implements GeyserConfiguration {
}
}
@Override
public int getMtu() {
return node.getNode("mtu").getInt(1400);
}
@Override
public int getConfigVersion() {
return node.getNode("config-version").getInt(0);