@Subscribe
public void onInput(EventInput eventInput) {
MoveUtils.fixMovement(eventInput, rotateVector.x);
}
@Subscribe
private void onMotion(EventMotion e) {
if (this.targetBlock != null && (Boolean)this.autoRotate.get()) {
e.setYaw(rotateVector.x);
e.setPitch(rotateVector.y);
this.serverRotateVector = new Vector2f(this.rotateVector.x, this.rotateVector.y);
mc.player.rotationYawHead = rotateVector.x;
mc.player.renderYawOffset = PlayerUtils.calculateCorrectYawOffset2(rotateVector.x);
mc.player.rotationPitchHead = rotateVector.y;
}
}