Skip to content

Commit

Permalink
correct block-center rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Nov 24, 2024
1 parent 274c43c commit bd53e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ authors=unascribed
contributors=Sisby folk
license=CC0-1.0
# Mod Version
baseVersion=1.4.1
baseVersion=1.4.2
# Branch Metadata
branch=1.20
tagBranch=1.20
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/unascribed/qdwarp/QDWarp.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ record RotChoice(String name, FloatUnaryOperator op) {}
PosChoice[] posChoices = {
new PosChoice("exact", c -> c),
new PosChoice("block-corner", c -> Math.round(c*4)/4D),
new PosChoice("block-center", c -> ((int)c)+0.5)
new PosChoice("block-center", c -> (c < 0 ? Math.floor(c) : (int) c) + 0.5)
};
RotChoice[] rotChoices = {
new RotChoice("exact", f -> f),
Expand Down

0 comments on commit bd53e21

Please sign in to comment.