Skip to content

Commit

Permalink
thing
Browse files Browse the repository at this point in the history
  • Loading branch information
4d616e61 authored and Wide-Cat committed Sep 6, 2023
1 parent 7d30a0e commit 40dbfbd
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,11 @@ private static boolean ignoreGround(ClientPlayerEntity player) {
}

private float getYawDirection() {
switch (elytraFly.yawLockMode.get()) {
case None -> {
return mc.player.getYaw();
}
case Smart -> {
return Math.round((mc.player.getYaw() + 1f) / 45f) * 45f;
}
case Simple -> {
return elytraFly.yaw.get().floatValue();
}
return switch (elytraFly.yawLockMode.get()) {
case None -> mc.player.getYaw();
case Smart -> Math.round((mc.player.getYaw() + 1f) / 45f) * 45f;
case Simple -> elytraFly.yaw.get().floatValue();
};
throw new IllegalArgumentException("um wtf");

}

Expand Down

0 comments on commit 40dbfbd

Please sign in to comment.