Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onEventPacketSent(final EventPacketSent event) {
- if (!(event.getPacket() instanceof Packet10Flying)
- || getClient().getPlayer().getTarget() == null)
- return;
- Packet10Flying packet = (Packet10Flying) event.getPacket();
- packet.pitch = getClient().getPlayer().getAttackPitch(
- getClient().getPlayer().getTarget());
- packet.yaw = getClient().getPlayer().getAttackYaw(
- getClient().getPlayer().getTarget());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement