mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 02:38:21 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -262,7 +262,7 @@ void HangingEntity::push(double xa, double ya, double za)
|
||||
|
||||
void HangingEntity::addAdditonalSaveData(CompoundTag *tag)
|
||||
{
|
||||
tag->putByte(L"Direction", static_cast<byte>(dir));
|
||||
tag->putByte(L"Direction", static_cast<BYTE>(dir));
|
||||
tag->putInt(L"TileX", xTile);
|
||||
tag->putInt(L"TileY", yTile);
|
||||
tag->putInt(L"TileZ", zTile);
|
||||
@@ -271,16 +271,16 @@ void HangingEntity::addAdditonalSaveData(CompoundTag *tag)
|
||||
switch (dir)
|
||||
{
|
||||
case Direction::NORTH:
|
||||
tag->putByte(L"Dir", (byte) 0);
|
||||
tag->putByte(L"Dir", (BYTE) 0);
|
||||
break;
|
||||
case Direction::WEST:
|
||||
tag->putByte(L"Dir", (byte) 1);
|
||||
tag->putByte(L"Dir", (BYTE) 1);
|
||||
break;
|
||||
case Direction::SOUTH:
|
||||
tag->putByte(L"Dir", (byte) 2);
|
||||
tag->putByte(L"Dir", (BYTE) 2);
|
||||
break;
|
||||
case Direction::EAST:
|
||||
tag->putByte(L"Dir", (byte) 3);
|
||||
tag->putByte(L"Dir", (BYTE) 3);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user