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 // Send the velocity packets
if (isMoving) { if (isMoving) {
Vector velocity = player.getVelocity(); Vector velocity = player.getVelocity();
sendSelfPacket(player, manager sendSelfPacket(player,
.createPacketConstructor(Server.ENTITY_VELOCITY, player.getEntityId(), velocity.getX(), manager.createPacketConstructor(Server.ENTITY_VELOCITY, player).createPacket(player));
velocity.getY(), velocity.getZ())
.createPacket(player.getEntityId(), velocity.getX(), velocity.getY(), velocity.getZ()));
} }
// Why the hell would he even need this. Meh. // Why the hell would he even need this. Meh.