Skip to content

Commit

Permalink
Fix y update on the center3D method
Browse files Browse the repository at this point in the history
  • Loading branch information
theEvilReaper committed Dec 10, 2024
1 parent 925a6e0 commit 60987b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/minestom/server/coordinate/Pos.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public boolean sameView(float yaw, float pitch) {

@Override
public @NotNull Point center3D() {
return new Pos(x + 0.5, x + 0.5, x + 0.5, yaw, pitch);
return new Pos(x + 0.5, y + 0.5, x + 0.5, yaw, pitch);
}

@FunctionalInterface
Expand Down

0 comments on commit 60987b4

Please sign in to comment.