From 3816806de79e91e427f6821b96112f11096e6a60 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 13 Mar 2020 13:00:55 +1300 Subject: [PATCH] Use different constructor for velocity packets --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 03bdefa4..2535b497 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -1776,10 +1776,8 @@ public class DisguiseUtilities { // Send the velocity packets if (isMoving) { Vector velocity = player.getVelocity(); - sendSelfPacket(player, manager - .createPacketConstructor(Server.ENTITY_VELOCITY, player.getEntityId(), velocity.getX(), - velocity.getY(), velocity.getZ()) - .createPacket(player.getEntityId(), velocity.getX(), velocity.getY(), velocity.getZ())); + sendSelfPacket(player, + manager.createPacketConstructor(Server.ENTITY_VELOCITY, player).createPacket(player)); } // Why the hell would he even need this. Meh.