We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a08a5e8 commit 94e9229Copy full SHA for 94e9229
common/src/main/java/io/github/notenoughupdates/moulconfig/common/text/DefaultFormattingColour.java
@@ -57,8 +57,10 @@ public enum DefaultFormattingColour {
57
MathUtil.squaredDistance(cr, r)
58
+ MathUtil.squaredDistance(cg, g)
59
+ MathUtil.squaredDistance(cb, b);
60
- if (sqDist < minDistance)
+ if (sqDist < minDistance) {
61
best = candidate;
62
+ minDistance = sqDist;
63
+ }
64
}
65
assert best != null;
66
return best;
0 commit comments