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