From 9792b6ba0e2cd53014b5c8a85b0c2990d944d80f Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 17 May 2020 09:19:26 +1200 Subject: [PATCH] Don't send squid velocity --- .../packets/packethandlers/PacketHandlerSpawn.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java index 19d40118..c75b9410 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java @@ -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);