Use different constructor for velocity packets

This commit is contained in:
libraryaddict 2020-03-13 13:00:55 +13:00
parent 1a12a80a32
commit 3816806de7
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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.