Skip to content

Commit

Permalink
packet/compression.go: Update documentation about default compression (
Browse files Browse the repository at this point in the history
  • Loading branch information
smell-of-curry authored Aug 19, 2024
1 parent 463fa55 commit aed4aa4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions minecraft/protocol/packet/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ var (
// NopCompression is an empty implementation that does not compress data.
NopCompression nopCompression
// FlateCompression is the implementation of the Flate compression
// algorithm. This was used by default until v1.19.30.
// algorithm. This is used by default.
FlateCompression flateCompression
// SnappyCompression is the implementation of the Snappy compression
// algorithm. This is used by default.
// algorithm. Snappy currently crashes devices without `avx2`.
SnappyCompression snappyCompression

DefaultCompression Compression = FlateCompression
Expand All @@ -36,9 +36,9 @@ var (
type (
// nopCompression is an empty implementation that does not compress data.
nopCompression struct{}
// flateCompression is the implementation of the Flate compression algorithm. This was used by default until v1.19.30.
// flateCompression is the implementation of the Flate compression algorithm.
flateCompression struct{}
// snappyCompression is the implementation of the Snappy compression algorithm. This is used by default.
// snappyCompression is the implementation of the Snappy compression algorithm.
snappyCompression struct{}
)

Expand Down

0 comments on commit aed4aa4

Please sign in to comment.