mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Cleanup of c00ac08514c93edc88e556d40ac75a54eb40e271
This commit is contained in:
parent
5de230faaa
commit
388d83787a
1 changed files with 36 additions and 38 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue