From e36e58609d8fb163c158b651380e20fea4712fa8 Mon Sep 17 00:00:00 2001 From: MathiewMay Date: Wed, 11 Mar 2026 08:42:19 -0400 Subject: [PATCH] Reverted the SetEntityMotionPacket.cpp changes --- Minecraft.World/Network/Packets/SetEntityMotionPacket.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Minecraft.World/Network/Packets/SetEntityMotionPacket.cpp b/Minecraft.World/Network/Packets/SetEntityMotionPacket.cpp index cb6d2a42c..bff87c5bd 100644 --- a/Minecraft.World/Network/Packets/SetEntityMotionPacket.cpp +++ b/Minecraft.World/Network/Packets/SetEntityMotionPacket.cpp @@ -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);