Skip to content

Commit

Permalink
Merge pull request #226 from boholder/1.20-fix-camera-center-alt-bug
Browse files Browse the repository at this point in the history
Fix camera center alt bug
  • Loading branch information
khanshoaib3 committed Dec 29, 2023
2 parents 10026f7 + 55e501d commit 8d9a3e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ private void rotateCameraTo(Orientation direction) {
private void centerCamera(boolean lookOpposite) {
if (minecraftClient.player == null) return;
String direction = new PlayerPositionUtils(minecraftClient).getHorizontalFacingDirectionInCardinal(true, lookOpposite);
rotateCameraTo(Orientation.of(direction));
Orientation o = Orientation.of(direction);
rotateCameraTo(lookOpposite ? o.getOpposite() : o);
}
}
7 changes: 7 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Release v1.4.3 (2024-01)
---------------------------

### Bug Fixes

* Fix the bug that you can't use `Left Alt` + `Center Camera Key` to look straight back. [#225](https://github.com/khanshoaib3/minecraft-access/issues/225)

Release v1.4.2 (2023-12)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fabric_yarn_version=1.20.1+build.8:v2
enabled_platforms=fabric,forge

archives_base_name=minecraft-access
mod_version=1.4.2+1.20.1
mod_version=1.4.3+1.20.1
maven_group=com.github.khanshoaib3.minecraft_access

architectury_version=9.0.8
Expand Down

0 comments on commit 8d9a3e8

Please sign in to comment.