mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 19:28:49 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user