-
Current: var chunkX, chunkZ packet.Int
var heightmaps nbt.RawMessage
var size pk.VarInt
r := bytes.NewBuffer(p.Data)
pk.Tuple{&chunkX, &chunkZ, pk.NBT(heightmaps), &size}.ReadFrom(r)
sectionLens := world.Height / 16
sections := map[int]level.Section{}
for i := 0; i < sectionLens; i++ {
var section level.Section
section.ReadFrom(r)
sections[i] = section
} Error:
|
Beta Was this translation helpful? Give feedback.
Answered by
Tnze
Mar 12, 2022
Replies: 2 comments 11 replies
-
I implemented pk.FieldDecoder for level.Chunk yesterday. Just not commit yet |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
patyhank
-
pk.NBT(&heightmaps) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I implemented pk.FieldDecoder for level.Chunk yesterday. Just not commit yet