Skip to content

Commit

Permalink
protocol/io.go: Lower max slice length to 512.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Jun 13, 2023
1 parent 7c5edc3 commit b81a4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/protocol/io.go
Expand Up @@ -138,7 +138,7 @@ func FuncIOSliceUint32Length[T any, S ~*[]T](r IO, x S, f func(IO, *T)) {
FuncIOSliceOfLen(r, count, x, f)
}

const maxSliceLength = 2048
const maxSliceLength = 512

// SliceOfLen reads/writes the elements of a slice of type T with length l.
func SliceOfLen[T any, S ~*[]T, A PtrMarshaler[T]](r IO, l uint32, x S) {
Expand Down

0 comments on commit b81a4ee

Please sign in to comment.