Skip to content

Commit

Permalink
Merge branch 'dev/v0.6.1' into port-1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed Aug 10, 2024
2 parents 141a908 + 3b92f64 commit 32f2779
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
10 changes: 2 additions & 8 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
Extra smoothness and extra compatibility change.

Changelog:

- **Fixed:** Delayed camera movement when train turns.
- **Added:** Debug option to display new value scales used to fix the aforementioned delayed camera movement.
- **Fixed:** Incompatibility with Figura combined with some mods. [#67](https://github.com/der-fruhling-entertainment/create-train-perspective/issues/67)
- (fixed via possibly temporary workaround. please report any other issues with this mod and mine! it likes to get breaky)
- **Technical:** Cleaned up the code a bit more.
- **Fixed:** Critical jittering bug introduced in v0.6.0

[View full change log.](https://github.com/der-fruhling/create-train-perspective/compare/v0.5.0...v0.6.0)
[View full change log.](https://github.com/der-fruhling/create-train-perspective/compare/v0.6.0...v0.6.1)

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ default float getYaw(float f) {
var ref = getReference();
if (ref == null) return 0.0f;
if (f == 1.0f) return ref.yaw * getValueScale();

while (ref.yaw - ref.prevYaw < -180.0f) {
ref.prevYaw -= 360.0f;
}

while (ref.yaw - ref.prevYaw >= 180.0f) {
ref.prevYaw += 360.0f;
}

return Mth.lerp(f, ref.prevYaw * getPrevValueScale(), ref.yaw * getValueScale());
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fabric_loader_version=0.15.7
fabric_api_version=0.77.0+1.18.2
# public info
mod_id=create_train_perspective
mod_version=0.6.0
mod_version=0.6.1
maven_group=net.derfruhling.minecraft
archives_base_name=create-train-perspective
# mod dependency versions
Expand Down

0 comments on commit 32f2779

Please sign in to comment.