Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jul 14, 2023
1 parent bff8ec0 commit 99d898d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version = 1.18
yarn_mappings = 1.18+build.1
loader_version = 0.14.21

mod_version = 2.5.2.1
mod_version = 2.5.2.2
maven_group = net.krlite
archives_base_name = equator

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/krlite/equator/render/renderer/Flat.java
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ private double delta() {
}

private double clampOffset(double offset) {
return Theory.clamp(offset, -radians(), radians());
return Theory.clamp(offset, offset() - radians(), offset() + radians());
}

private double nextOffset(double offset) {
Expand All @@ -1344,7 +1344,7 @@ private double nextOffset(double offset) {
}

private boolean isOffsetLegal(double offset) {
return radians() >= 0 ? offset <= radians() + delta() : offset >= radians() - delta();
return radians() >= 0 ? offset <= offset() + radians() + delta() : offset >= offset() + radians() - delta();
}

// Interface Implementations
Expand Down

0 comments on commit 99d898d

Please sign in to comment.