geforkt von Mirrors/Paper
[Bleeding] Fixed MapPalette.imageToBytes to properly handle transparency. Addresses BUKKIT-852
By: SpaceManiac <tad.hardesty@platymuus.com>
Dieser Commit ist enthalten in:
Ursprung
38fd1dd5f0
Commit
2fa5a7033a
@ -97,7 +97,7 @@ public final class MapPalette {
|
|||||||
|
|
||||||
byte[] result = new byte[temp.getWidth() * temp.getHeight()];
|
byte[] result = new byte[temp.getWidth() * temp.getHeight()];
|
||||||
for (int i = 0; i < pixels.length; i++) {
|
for (int i = 0; i < pixels.length; i++) {
|
||||||
result[i] = matchColor(new Color(pixels[i]));
|
result[i] = matchColor(new Color(pixels[i], true));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren