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