mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Explain that yes, we have to write 32 biome palettes always
This commit is contained in:
parent
89370ef648
commit
99a7f9a012
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ public class JavaChunkDataTranslator extends PacketTranslator<ServerChunkDataPac
|
||||||
BiomeUtils.toNewBedrockBiome(column.getBiomeData(), i).writeToNetwork(byteBuf);
|
BiomeUtils.toNewBedrockBiome(column.getBiomeData(), i).writeToNetwork(byteBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// As of 1.17.10, Bedrock hardcodes to always read 32 biome sections
|
||||||
int remainingEmptyBiomes = 32 - sectionCount;
|
int remainingEmptyBiomes = 32 - sectionCount;
|
||||||
for (int i = 0; i < remainingEmptyBiomes; i++) {
|
for (int i = 0; i < remainingEmptyBiomes; i++) {
|
||||||
byteBuf.writeBytes(ChunkUtils.EMPTY_BIOME_DATA);
|
byteBuf.writeBytes(ChunkUtils.EMPTY_BIOME_DATA);
|
||||||
|
|
Loading…
Reference in a new issue