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

@@ -27,7 +27,7 @@ PlayerAbilitiesPacket::PlayerAbilitiesPacket(Abilities *abilities)
void PlayerAbilitiesPacket::read(DataInputStream *dis)
{
byte bitfield = dis->readByte();
uint8_t bitfield = dis->readByte();
this->setInvulnerable((bitfield & FLAG_INVULNERABLE) > 0);
this->setFlying((bitfield & FLAG_FLYING) > 0);
@@ -39,7 +39,7 @@ void PlayerAbilitiesPacket::read(DataInputStream *dis)
void PlayerAbilitiesPacket::write(DataOutputStream *dos)
{
byte bitfield = 0;
uint8_t bitfield = 0;
if (isInvulnerable()) bitfield |= FLAG_INVULNERABLE;
if (isFlying()) bitfield |= FLAG_FLYING;