mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-23 08:15:34 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user