Explain that yes, we have to write 32 biome palettes always

This commit is contained in:
Camotoy 2021-07-15 18:31:47 -04:00
parent 89370ef648
commit 99a7f9a012
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -100,6 +100,7 @@ public class JavaChunkDataTranslator extends PacketTranslator<ServerChunkDataPac
BiomeUtils.toNewBedrockBiome(column.getBiomeData(), i).writeToNetwork(byteBuf);
}
// As of 1.17.10, Bedrock hardcodes to always read 32 biome sections
int remainingEmptyBiomes = 32 - sectionCount;
for (int i = 0; i < remainingEmptyBiomes; i++) {
byteBuf.writeBytes(ChunkUtils.EMPTY_BIOME_DATA);