mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 05:19:10 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -25,7 +25,7 @@ PlayerAbilitiesPacket::PlayerAbilitiesPacket(Abilities *abilities)
|
||||
|
||||
void PlayerAbilitiesPacket::read(DataInputStream *dis)
|
||||
{
|
||||
byte bitfield = dis->readByte();
|
||||
BYTE bitfield = dis->readByte();
|
||||
|
||||
setInvulnerable((bitfield & FLAG_INVULNERABLE) > 0);
|
||||
setFlying((bitfield & FLAG_FLYING) > 0);
|
||||
@@ -37,7 +37,7 @@ void PlayerAbilitiesPacket::read(DataInputStream *dis)
|
||||
|
||||
void PlayerAbilitiesPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
byte bitfield = 0;
|
||||
BYTE bitfield = 0;
|
||||
|
||||
if (isInvulnerable()) bitfield |= FLAG_INVULNERABLE;
|
||||
if (isFlying()) bitfield |= FLAG_FLYING;
|
||||
|
||||
Reference in New Issue
Block a user