Don't send squid velocity

This commit is contained in:
libraryaddict 2020-05-17 09:19:26 +12:00
parent f572792c5b
commit 9792b6ba0e
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -260,9 +260,13 @@ public class PacketHandlerSpawn implements IPacketHandler {
mods.write(3, loc.getX());
mods.write(4, loc.getY());
mods.write(5, loc.getZ());
mods.write(6, (int) (d2 * 8000.0D));
mods.write(7, (int) (d3 * 8000.0D));
mods.write(8, (int) (d4 * 8000.0D));
if (disguise.getType() != DisguiseType.SQUID || disguisedEntity.getType() == EntityType.SQUID) {
mods.write(6, (int) (d2 * 8000.0D));
mods.write(7, (int) (d3 * 8000.0D));
mods.write(8, (int) (d4 * 8000.0D));
}
mods.write(9, yaw);
mods.write(10, pitch);
mods.write(11, yaw);