Skip to content

Commit a83e1b0

Browse files
authored
EaglerXServer support (#253)
1 parent 3781544 commit a83e1b0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugin/src/main/java/net/elytrium/limboapi/Settings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static class MAIN {
7373
"WARNING: do not change when proxy is running, it will break exsiting connections",
7474
"LimboAPI will be running in compatibility mode, allowing other plugins to",
7575
"intercept or modify packets sent by it, but will reduce performance in some cases.",
76-
"Enable if you are using plugins that modify packets. (e.g. ViaVersion, Raknetify or PacketEvents)",
76+
"Enable if you are using plugins that modify packets. (e.g. ViaVersion, Raknetify, EaglerX or PacketEvents)",
7777
"Require 'save-uncompressed-packets: true' to work properly"
7878
})
7979
public boolean COMPATIBILITY_MODE = false;

plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public void hookLoginSession(GameProfileRequestEvent event) throws Throwable {
194194
// Complete the Login process.
195195
int threshold = this.server.getConfiguration().getCompressionThreshold();
196196
ChannelPipeline pipeline = connection.getChannel().pipeline();
197-
boolean compressionEnabled = threshold >= 0 && connection.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0;
197+
boolean compressionEnabled = threshold >= 0 && connection.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0
198+
&& pipeline.context(Connections.FRAME_ENCODER) != null;
198199
if (compressionEnabled) {
199200
connection.write(new SetCompressionPacket(threshold));
200201
this.plugin.fixDecompressor(pipeline, threshold, true);

0 commit comments

Comments
 (0)