fix: remove byte type alias

This commit is contained in:
Tropical
2026-03-06 05:03:37 -06:00
parent 09eae49d21
commit 15af35eef2
208 changed files with 700 additions and 701 deletions

View File

@@ -236,7 +236,7 @@ void HangingEntity::push(double xa, double ya, double za)
void HangingEntity::addAdditonalSaveData(CompoundTag *tag)
{
tag->putByte(L"Direction", (byte) dir);
tag->putByte(L"Direction", (uint8_t) dir);
tag->putInt(L"TileX", xTile);
tag->putInt(L"TileY", yTile);
tag->putInt(L"TileZ", zTile);
@@ -245,16 +245,16 @@ void HangingEntity::addAdditonalSaveData(CompoundTag *tag)
switch (dir)
{
case Direction::NORTH:
tag->putByte(L"Dir", (byte) 0);
tag->putByte(L"Dir", (uint8_t) 0);
break;
case Direction::WEST:
tag->putByte(L"Dir", (byte) 1);
tag->putByte(L"Dir", (uint8_t) 1);
break;
case Direction::SOUTH:
tag->putByte(L"Dir", (byte) 2);
tag->putByte(L"Dir", (uint8_t) 2);
break;
case Direction::EAST:
tag->putByte(L"Dir", (byte) 3);
tag->putByte(L"Dir", (uint8_t) 3);
break;
}
}