mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-28 18:05:49 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -302,10 +302,10 @@ void MapItemSavedData::tickCarriedBy(shared_ptr<Player> player, shared_ptr<ItemI
|
||||
if (xd < -size || yd < -size || xd > size || yd > size)
|
||||
{
|
||||
|
||||
if (xd <= -size) x = (byte) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (byte) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (byte) (size * 2 + 1);
|
||||
if (yd >= size) y = (byte) (size * 2 + 1);
|
||||
if (xd <= -size) x = (uint8_t) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (uint8_t) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (uint8_t) (size * 2 + 1);
|
||||
if (yd >= size) y = (uint8_t) (size * 2 + 1);
|
||||
}
|
||||
#endif
|
||||
//decorations.push_back(new MapDecoration(4, x, y, 0));
|
||||
@@ -339,10 +339,10 @@ void MapItemSavedData::tickCarriedBy(shared_ptr<Player> player, shared_ptr<ItemI
|
||||
if (xd < -size || yd < -size || xd > size || yd > size)
|
||||
{
|
||||
|
||||
if (xd <= -size) x = (byte) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (byte) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (byte) (size * 2 + 1);
|
||||
if (yd >= size) y = (byte) (size * 2 + 1);
|
||||
if (xd <= -size) x = (uint8_t) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (uint8_t) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (uint8_t) (size * 2 + 1);
|
||||
if (yd >= size) y = (uint8_t) (size * 2 + 1);
|
||||
}
|
||||
#endif
|
||||
//decorations.push_back(new MapDecoration(7, x, y, 0));
|
||||
@@ -373,10 +373,10 @@ void MapItemSavedData::tickCarriedBy(shared_ptr<Player> player, shared_ptr<ItemI
|
||||
if (xd < -size || yd < -size || xd > size || yd > size)
|
||||
{
|
||||
|
||||
if (xd <= -size) x = (byte) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (byte) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (byte) (size * 2 + 1);
|
||||
if (yd >= size) y = (byte) (size * 2 + 1);
|
||||
if (xd <= -size) x = (uint8_t) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (uint8_t) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (uint8_t) (size * 2 + 1);
|
||||
if (yd >= size) y = (uint8_t) (size * 2 + 1);
|
||||
}
|
||||
#endif
|
||||
//decorations.push_back(new MapDecoration(7, x, y, 0));
|
||||
@@ -432,10 +432,10 @@ void MapItemSavedData::tickCarriedBy(shared_ptr<Player> player, shared_ptr<ItemI
|
||||
|
||||
rot = 0;
|
||||
size--; // Added to match the old adjusted size
|
||||
if (xd <= -size) x = (byte) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (byte) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (byte) (size * 2 + 1);
|
||||
if (yd >= size) y = (byte) (size * 2 + 1);
|
||||
if (xd <= -size) x = (uint8_t) (size * 2 + 2.5);
|
||||
if (yd <= -size) y = (uint8_t) (size * 2 + 2.5);
|
||||
if (xd >= size) x = (uint8_t) (size * 2 + 1);
|
||||
if (yd >= size) y = (uint8_t) (size * 2 + 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -546,8 +546,8 @@ void MapItemSavedData::mergeInMapData(shared_ptr<MapItemSavedData> dataToAdd)
|
||||
|
||||
for (int z = 0; z < h; z++)
|
||||
{
|
||||
byte oldColor = colors[x + z * w];
|
||||
byte newColor = dataToAdd->colors[x + z * w];
|
||||
uint8_t oldColor = colors[x + z * w];
|
||||
uint8_t newColor = dataToAdd->colors[x + z * w];
|
||||
if (oldColor == 0 && oldColor != newColor)
|
||||
{
|
||||
if (yd0 > z) yd0 = z;
|
||||
|
||||
Reference in New Issue
Block a user