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

@@ -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;
}
}