mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Merge branch 'v3.0' of https://github.com/webbukkit/dynmap.git into v3.0
This commit is contained in:
commit
e7113dc163
@ -62,9 +62,12 @@ public class PlayerFaces {
|
|||||||
{
|
{
|
||||||
int[] l1 = new int[w * h];
|
int[] l1 = new int[w * h];
|
||||||
int[] l2 = new int[w * h];
|
int[] l2 = new int[w * h];
|
||||||
|
int imgh = srcimg.getHeight();
|
||||||
// Read layer 1
|
// Read layer 1
|
||||||
|
if (imgh >= (layer1y+h))
|
||||||
srcimg.getRGB(layer1x, layer1y, w, h, l1, 0, w);
|
srcimg.getRGB(layer1x, layer1y, w, h, l1, 0, w);
|
||||||
// Read layer 2
|
// Read layer 2
|
||||||
|
if (imgh >= (layer2y+h))
|
||||||
srcimg.getRGB(layer2x, layer2y, w, h, l2, 0, w);
|
srcimg.getRGB(layer2x, layer2y, w, h, l2, 0, w);
|
||||||
// Apply layer1 to layer 1
|
// Apply layer1 to layer 1
|
||||||
boolean transp = false;
|
boolean transp = false;
|
||||||
@ -137,7 +140,7 @@ public class PlayerFaces {
|
|||||||
if(img == null) { /* No image to process? Quit */
|
if(img == null) { /* No image to process? Quit */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if((img.getWidth() < 64) || (img.getHeight() < 64)) {
|
if((img.getWidth() < 64) || (img.getHeight() < 32)) {
|
||||||
img.flush();
|
img.flush();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user