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

@@ -74,7 +74,7 @@ shared_ptr<MapItemSavedData> MapItem::getSavedData(shared_ptr<ItemInstance> item
mapItemSavedData->x = Math::round((float) level->getLevelData()->getXSpawn() / scale) * scale;
mapItemSavedData->z = Math::round(level->getLevelData()->getZSpawn() / scale) * scale;
#endif
mapItemSavedData->dimension = (byte) level->dimension->id;
mapItemSavedData->dimension = (uint8_t) level->dimension->id;
mapItemSavedData->setDirty();
@@ -243,8 +243,8 @@ void MapItem::update(Level *level, shared_ptr<Entity> player, shared_ptr<MapItem
{
continue;
}
byte oldColor = data->colors[x + z * w];
byte newColor = (byte) (col * 4 + br);
uint8_t oldColor = data->colors[x + z * w];
uint8_t newColor = (uint8_t) (col * 4 + br);
if (oldColor != newColor)
{
if (yd0 > z) yd0 = z;
@@ -331,7 +331,7 @@ void MapItem::onCraftedBy(shared_ptr<ItemInstance> itemInstance, Level *level, s
// 4J-PB - for Xbox maps, we'll centre them on the origin of the world, since we can fit the whole world in our map
data->x = centreXC;
data->z = centreZC;
data->dimension = (byte) level->dimension->id;
data->dimension = (uint8_t) level->dimension->id;
data->setDirty();
}