1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

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
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);