mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 21:48:32 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user