Skip to content

Commit

Permalink
Merge branch 'fix-attribute-clamp' into merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Oct 5, 2024
2 parents ca0ca47 + 55c0842 commit be56e28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public double with(WrapperPlayServerUpdateAttributes.Property property) {
d1 *= 1.0D + attributemodifier.getAmount();
}

double newValue = GrimMath.clampFloat((float) d1, (float) min, (float) max);
double newValue = GrimMath.clamp(d1, min, max);
if (setRewriter != null) {
newValue = setRewriter.apply(this.value, newValue);
}
Expand Down

0 comments on commit be56e28

Please sign in to comment.