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

@@ -183,8 +183,8 @@ void Player::defineSynchedData()
{
this->Mob::defineSynchedData();
entityData->define(DATA_PLAYER_FLAGS_ID, (byte) 0);
entityData->define(DATA_PLAYER_RUNNING_ID, (byte) 0);
entityData->define(DATA_PLAYER_FLAGS_ID, (uint8_t) 0);
entityData->define(DATA_PLAYER_RUNNING_ID, (uint8_t) 0);
}
shared_ptr<ItemInstance> Player::getUseItem()
@@ -572,7 +572,7 @@ void Player::completeUsingItem()
}
}
void Player::handleEntityEvent(byte id)
void Player::handleEntityEvent(uint8_t id)
{
if (id == EntityEvent::USE_ITEM_COMPLETE)
{
@@ -1979,14 +1979,14 @@ bool Player::getPlayerFlag(int flag)
void Player::setPlayerFlag(int flag, bool value)
{
byte currentValue = entityData->getByte(DATA_PLAYER_FLAGS_ID);
uint8_t currentValue = entityData->getByte(DATA_PLAYER_FLAGS_ID);
if (value)
{
entityData->set(DATA_PLAYER_FLAGS_ID, (byte) (currentValue | (1 << flag)));
entityData->set(DATA_PLAYER_FLAGS_ID, (uint8_t) (currentValue | (1 << flag)));
}
else
{
entityData->set(DATA_PLAYER_FLAGS_ID, (byte) (currentValue & ~(1 << flag)));
entityData->set(DATA_PLAYER_FLAGS_ID, (uint8_t) (currentValue & ~(1 << flag)));
}
}