调整数据
This commit is contained in:
parent
9a8901823b
commit
d890a05b77
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ public class ClientEventHandler {
|
||||||
double angle = 0;
|
double angle = 0;
|
||||||
|
|
||||||
if (lookDistance != 0) {
|
if (lookDistance != 0) {
|
||||||
angle = Math.atan(0.6 / lookDistance) * Mth.RAD_TO_DEG;
|
angle = Math.atan(0.6 / (lookDistance + 2.9)) * Mth.RAD_TO_DEG;
|
||||||
}
|
}
|
||||||
|
|
||||||
// player.displayClientMessage(Component.nullToEmpty(Component.literal(new DecimalFormat("##").format(lookDistance)) + " " + new DecimalFormat("##.#").format(angle)), true);
|
// player.displayClientMessage(Component.nullToEmpty(Component.literal(new DecimalFormat("##").format(lookDistance)) + " " + new DecimalFormat("##.#").format(angle)), true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue