mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-13 05:54:40 +01:00
Handle error loading texture pack image without aborting texture pack
load
This commit is contained in:
parent
0445814ef5
commit
a6b56dc36e
@ -1254,8 +1254,13 @@ public class TexturePack {
|
||||
/* Load image */
|
||||
if(is != null) {
|
||||
ImageIO.setUseCache(false);
|
||||
img = ImageIO.read(is);
|
||||
if(img == null) { throw new FileNotFoundException(); }
|
||||
try {
|
||||
img = ImageIO.read(is);
|
||||
} catch (IOException iox) {
|
||||
}
|
||||
if (img == null) {
|
||||
Log.warning(String.format("Error loading image %s from module %s", fname, modid));
|
||||
}
|
||||
}
|
||||
if(idx >= imgs.length) {
|
||||
LoadedImage[] newimgs = new LoadedImage[idx+1];
|
||||
|
Loading…
Reference in New Issue
Block a user