PrismarineJS/prismarine-chunk

Incorrectly decoding after sections (bedrock)

Flonja opened this issue · 1 comments

Flonja commented

When sub chunks have been read properly border blocks, biomes and (possible) block entities follow.
Though when a server only uses LevelChunkPackets, it can still send 1.18-type biomes, (unless the vanilla_version field is 1.17.40 or lower.)

This edge-case can be reproduced on a PMMP4 server, (as this doesn't use the mode -1 or -2.)

From (prismarine-chunk/1.18/ChunkColumn L145) to the incorrect code block: prismarine-chunk/1.3/ChunkColumn (L189-L191).
What it should be could be found in the previous implementation: bedrock-provider/1.3/ChunkColumn.ts (L352-L363).