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