1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-04 15:31:36 +00:00

Improve node ordering when updating configs

This commit is contained in:
Konicai
2024-08-08 21:15:47 -05:00
parent ab4cc97b38
commit 76ca326590
4 changed files with 196 additions and 11 deletions

View File

@@ -228,7 +228,7 @@ public class GeyserViaProxyPlugin extends ViaProxyPlugin implements GeyserPlugin
int interval = pingPassthroughInterval.getInt();
if (interval < 15 && ViaProxy.getConfig().getTargetVersion() != null && ViaProxy.getConfig().getTargetVersion().olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
// <= 1.6.4 servers sometimes block incoming connections from an IP address if too many connections are made
node.set(15);
pingPassthroughInterval.set(15);
}
} catch (SerializationException e) {
throw new RuntimeException(e);