Reverted the SetEntityMotionPacket.cpp changes

This commit is contained in:
MathiewMay 2026-03-11 08:42:19 -04:00
parent 77deb67b4a
commit e36e58609d

View file

@ -73,20 +73,18 @@ void SetEntityMotionPacket::read(DataInputStream *dis) //throws IOException
}
}
void SetEntityMotionPacket::write(DataOutputStream *dos) //throws IOException
void SetEntityMotionPacket::write(DataOutputStream *dos) //throws IOException
{
if( useBytes )
{
// Masking the id to 11 bits before writing to account for large entitty ids.
dos->writeShort((id & 0x07FF) | 0x800);
dos->writeShort(id | 0x800);
dos->writeByte(xa/16);
dos->writeByte(ya/16);
dos->writeByte(za/16);
}
else
{
// same thing as line 80 here
dos->writeShort((id & 0x07FF));
dos->writeShort(id);
dos->writeShort(xa);
dos->writeShort(ya);
dos->writeShort(za);