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

@@ -24,7 +24,7 @@ ChunkTilesUpdatePacket::ChunkTilesUpdatePacket()
count = 0;
}
ChunkTilesUpdatePacket::ChunkTilesUpdatePacket(int xc, int zc, shortArray positions, byte count, Level *level)
ChunkTilesUpdatePacket::ChunkTilesUpdatePacket(int xc, int zc, shortArray positions, BYTE count, Level *level)
{
shouldDelay = true;
this->xc = xc;
@@ -42,8 +42,8 @@ ChunkTilesUpdatePacket::ChunkTilesUpdatePacket(int xc, int zc, shortArray positi
int y = (positions[i]) & 255;
this->positions[i] = positions[i];
blocks[i] = static_cast<byte>(levelChunk->getTile(x, y, z));
data[i] = static_cast<byte>(levelChunk->getData(x, y, z));
blocks[i] = static_cast<BYTE>(levelChunk->getTile(x, y, z));
data[i] = static_cast<BYTE>(levelChunk->getData(x, y, z));
}
levelIdx = ( ( level->dimension->id == 0 ) ? 0 : ( (level->dimension->id == -1) ? 1 : 2 ) );
}