forked from GeyserMC/Geyser
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:
parent
af5e8a83ca
commit
7fc14d8956
5 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue