mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix NullPointerException in BadgeImager
This commit is contained in:
parent
12507e9b43
commit
db8987678f
@ -53,18 +53,9 @@ public class BadgeImager {
|
||||
float red = (color.getRed() / 255.0F) * (maskColor.getRed() / 255.0F);
|
||||
float green = (color.getGreen() / 255.0F) * (maskColor.getGreen() / 255.0F);
|
||||
float blue = (color.getBlue() / 255.0F) * (maskColor.getBlue() / 255.0F);
|
||||
//
|
||||
|
||||
|
||||
//
|
||||
|
||||
|
||||
//
|
||||
|
||||
|
||||
color = new Color(red, green, blue, alpha);
|
||||
|
||||
|
||||
int rgb = color.getRGB();
|
||||
image.setRGB(x, y, rgb);
|
||||
}
|
||||
@ -209,6 +200,8 @@ public class BadgeImager {
|
||||
part = Emulator.getGameEnvironment().getGuildManager().getPart(GuildPartType.SYMBOL, id);
|
||||
}
|
||||
|
||||
if (part == null) continue;
|
||||
|
||||
BufferedImage imagePart = BadgeImager.deepCopy(this.cachedImages.get(part.valueA));
|
||||
|
||||
Point point;
|
||||
|
Loading…
Reference in New Issue
Block a user