Skip to content

Commit 94e9229

Browse files
CalMWolfslineargraph
authored andcommitted
fix color on 1.8
1 parent a08a5e8 commit 94e9229

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/common/text/DefaultFormattingColour.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public enum DefaultFormattingColour {
5757
MathUtil.squaredDistance(cr, r)
5858
+ MathUtil.squaredDistance(cg, g)
5959
+ MathUtil.squaredDistance(cb, b);
60-
if (sqDist < minDistance)
60+
if (sqDist < minDistance) {
6161
best = candidate;
62+
minDistance = sqDist;
63+
}
6264
}
6365
assert best != null;
6466
return best;

0 commit comments

Comments
 (0)