Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -23,11 +23,11 @@ TeleportEntityPacket::TeleportEntityPacket(shared_ptr<Entity> e)
x = Mth::floor(e->x * 32);
y = Mth::floor(e->y * 32);
z = Mth::floor(e->z * 32);
yRot = static_cast<byte>(e->yRot * 256 / 360);
xRot = static_cast<byte>(e->xRot * 256 / 360);
yRot = static_cast<BYTE>(e->yRot * 256 / 360);
xRot = static_cast<BYTE>(e->xRot * 256 / 360);
}
TeleportEntityPacket::TeleportEntityPacket(int id, int x, int y, int z, byte yRot, byte xRot)
TeleportEntityPacket::TeleportEntityPacket(int id, int x, int y, int z, BYTE yRot, BYTE xRot)
{
this->id = id;
this->x = x;