mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-06 21:57:32 +00:00
fix: remove byte type alias
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 = (byte) (e->yRot * 256 / 360);
|
||||
xRot = (byte) (e->xRot * 256 / 360);
|
||||
yRot = (uint8_t) (e->yRot * 256 / 360);
|
||||
xRot = (uint8_t) (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, uint8_t yRot, uint8_t xRot)
|
||||
{
|
||||
this->id = id;
|
||||
this->x = x;
|
||||
@@ -49,8 +49,8 @@ void TeleportEntityPacket::read(DataInputStream *dis) //throws IOException
|
||||
y = dis->readShort();
|
||||
z = dis->readShort();
|
||||
#endif
|
||||
yRot = (byte) dis->read();
|
||||
xRot = (byte) dis->read();
|
||||
yRot = (uint8_t) dis->read();
|
||||
xRot = (uint8_t) dis->read();
|
||||
}
|
||||
|
||||
void TeleportEntityPacket::write(DataOutputStream *dos) //throws IOException
|
||||
|
||||
Reference in New Issue
Block a user