Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -527,10 +527,10 @@ LevelChunk *OldChunkStorage::load(Level *level, CompoundTag *tag)
delete [] levelChunk->heightmap.data;
levelChunk->heightmap = tag->getByteArray(L"HeightMap");
// 4J - TerrainPopulated was a bool (java), then changed to be a byte bitfield, then replaced with TerrainPopulatedShort to store a wider bitfield
// 4J - TerrainPopulated was a bool (java), then changed to be a BYTE bitfield, then replaced with TerrainPopulatedShort to store a wider bitfield
if( tag->get(L"TerrainPopulated") )
{
// Java bool type or byte bitfield
// Java bool type or BYTE bitfield
levelChunk->terrainPopulated = tag->getByte(L"TerrainPopulated");
if( levelChunk->terrainPopulated >= 1 ) levelChunk->terrainPopulated = LevelChunk::sTerrainPopulatedAllNeighbours | LevelChunk::sTerrainPostPostProcessed; // Convert from old bool type to new bitfield
}