mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fix loading skins that have cropped sprite_icons.png with no physical data for missing elements (e.g. the new targeting arrows). Will now return a fully transparent color instead of bailing out with a crash.
This commit is contained in:
@@ -402,7 +402,7 @@ public enum FSkin {
|
|||||||
x0 = tempCoords[0];
|
x0 = tempCoords[0];
|
||||||
y0 = tempCoords[1];
|
y0 = tempCoords[1];
|
||||||
|
|
||||||
color = FSkin.getColorFromPixel(bimPreferredSprite.getRGB(x0, y0));
|
color = bimPreferredSprite.getData().getBounds().contains(x0, y0) ? FSkin.getColorFromPixel(bimPreferredSprite.getRGB(x0, y0)) : new Color(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user