diff options
author | SpaceManiac <tad.hardesty@platymuus.com> | 2012-02-25 22:44:09 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-29 01:53:29 -0500 |
commit | fd612066e29f2b3c568ac3137f9fb41741818544 (patch) | |
tree | 883c8961bc7e1044d9707c4597ff903995c699fe /src/main/java | |
parent | 1876c12a7979676367d357bd37e25f9492c557da (diff) | |
download | bukkit-fd612066e29f2b3c568ac3137f9fb41741818544.tar bukkit-fd612066e29f2b3c568ac3137f9fb41741818544.tar.gz bukkit-fd612066e29f2b3c568ac3137f9fb41741818544.tar.lz bukkit-fd612066e29f2b3c568ac3137f9fb41741818544.tar.xz bukkit-fd612066e29f2b3c568ac3137f9fb41741818544.zip |
[Bleeding] Fixed MapPalette.imageToBytes to properly handle transparency. Addresses BUKKIT-852
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/map/MapPalette.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/map/MapPalette.java b/src/main/java/org/bukkit/map/MapPalette.java index b9935b7d..959929cf 100644 --- a/src/main/java/org/bukkit/map/MapPalette.java +++ b/src/main/java/org/bukkit/map/MapPalette.java @@ -97,7 +97,7 @@ public final class MapPalette { byte[] result = new byte[temp.getWidth() * temp.getHeight()]; 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; } |