mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-29 20:28:28 +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.
|
||||
*/
|
||||
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];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue