Skip to content

Commit

Permalink
Update protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/…
Browse files Browse the repository at this point in the history
…TcpSession.java

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
  • Loading branch information
AlexProgrammerDE and Konicai authored Sep 12, 2024
1 parent 706786c commit 0d61334
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void callPacketSent(Packet packet) {
@Override
public void setCompression(CompressionConfig compressionConfig) {
if (this.channel == null) {
throw new IllegalStateException("You need to be connected to set the compression!");
throw new IllegalStateException("You need to connect to set the compression!");
}

channel.attr(NetworkConstants.COMPRESSION_ATTRIBUTE_KEY).set(compressionConfig);
Expand Down

0 comments on commit 0d61334

Please sign in to comment.