Compare commits

...
Author SHA1 Message Date
Axionize 55c084216d Fix incorrect casting to float before clamping attribute values 2024-10-05 17:32:07 -04:00
@@ -123,7 +123,7 @@ public final class ValuedAttribute {
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);
}