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

@@ -40,10 +40,10 @@ void DataLayer::set(int x, int y, int z, int val)
if (part == 0)
{
data[slot] = static_cast<byte>((data[slot] & 0xf0) | (val & 0xf));
data[slot] = static_cast<BYTE>((data[slot] & 0xf0) | (val & 0xf));
} else
{
data[slot] = static_cast<byte>((data[slot] & 0x0f) | ((val & 0xf) << 4));
data[slot] = static_cast<BYTE>((data[slot] & 0x0f) | ((val & 0xf) << 4));
}
}
@@ -54,7 +54,7 @@ bool DataLayer::isValid()
void DataLayer::setAll(int br)
{
byte val = static_cast<byte>(br & (br << 4));
BYTE val = static_cast<BYTE>(br & (br << 4));
for (unsigned int i = 0; i < data.length; i++)
{
data[i] = val;