don't crash TextureAtlas.repack when empty
This commit is contained in:
parent
0bc2be66b3
commit
1d32ce757f
|
@ -70,6 +70,10 @@ class TextureAtlas {
|
|||
int y = 0;
|
||||
int height;
|
||||
|
||||
if(textures.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
textures.sort(new TextureHeightComparator().reversed());
|
||||
height = textures.get(0).getImg().getHeight();
|
||||
|
||||
|
|
Loading…
Reference in New Issue