mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Cleanup of c00ac08514c93edc88e556d40ac75a54eb40e271
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -12,7 +12,6 @@ import java.awt.image.BufferedImage;
|
|||||||
* colors of varying shades with values entry to entry + 3.
|
* colors of varying shades with values entry to entry + 3.
|
||||||
*/
|
*/
|
||||||
public final class MapPalette {
|
public final class MapPalette {
|
||||||
|
|
||||||
// Internal mechanisms
|
// Internal mechanisms
|
||||||
private MapPalette() {}
|
private MapPalette() {}
|
||||||
|
|
||||||
@@ -209,7 +208,7 @@ public final class MapPalette {
|
|||||||
int index = 0;
|
int index = 0;
|
||||||
double best = -1;
|
double best = -1;
|
||||||
|
|
||||||
for (int i = 0; i < colors.length; i++) {
|
for (int i = 4; i < colors.length; i++) {
|
||||||
double distance = getDistance(color, colors[i]);
|
double distance = getDistance(color, colors[i]);
|
||||||
if (distance < best || best == -1) {
|
if (distance < best || best == -1) {
|
||||||
best = distance;
|
best = distance;
|
||||||
@@ -237,5 +236,4 @@ public final class MapPalette {
|
|||||||
return colors[index >= 0 ? index : index + 256];
|
return colors[index >= 0 ? index : index + 256];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user