Skip to content

Commit 00fc00c

Browse files
minecraft/protocol/packet/request_chunk_radius.go: Fix MaxChunkRadius
Co-Authored-By: Liliya233 <[email protected]>
1 parent b3fccf8 commit 00fc00c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

minecraft/protocol/packet/request_chunk_radius.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type RequestChunkRadius struct {
1313
ChunkRadius int32
1414
// MaxChunkRadius is the maximum chunk radius that the player wants to receive. The reason for the client sending this
1515
// is currently unknown.
16-
MaxChunkRadius int32
16+
MaxChunkRadius uint8
1717
}
1818

1919
// ID ...
@@ -23,5 +23,5 @@ func (*RequestChunkRadius) ID() uint32 {
2323

2424
func (pk *RequestChunkRadius) Marshal(io protocol.IO) {
2525
io.Varint32(&pk.ChunkRadius)
26-
io.Varint32(&pk.MaxChunkRadius)
26+
io.Uint8(&pk.MaxChunkRadius)
2727
}

0 commit comments

Comments
 (0)