mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-06 09:19:35 +01:00
Use different constructor for velocity packets
This commit is contained in:
parent
1a12a80a32
commit
3816806de7
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user