13
0
geforkt von Mirrors/Paper

Cleanup of c00ac08514c93edc88e556d40ac75a54eb40e271

By: feildmaster <admin@feildmaster.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2013-12-09 16:25:03 -06:00
Ursprung 7d8d6df39e
Commit 6f78bf64a6

Datei anzeigen

@ -12,7 +12,6 @@ import java.awt.image.BufferedImage;
* colors of varying shades with values entry to entry + 3.
*/
public final class MapPalette {
// Internal mechanisms
private MapPalette() {}
@ -209,7 +208,7 @@ public final class MapPalette {
int index = 0;
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]);
if (distance < best || best == -1) {
best = distance;
@ -237,5 +236,4 @@ public final class MapPalette {
return colors[index >= 0 ? index : index + 256];
}
}
}