Reconstructor sprites / Bugfixes
This commit is contained in:
@@ -200,8 +200,6 @@ public class Generators{
|
||||
//encode square sprite in alpha channel
|
||||
average.a = hasEmpty ? 0.1f : 1f;
|
||||
colors.draw(block.id, 0, average);
|
||||
}catch(IllegalArgumentException e){
|
||||
Log.info("Skipping &ly'@'", block.name);
|
||||
}catch(NullPointerException e){
|
||||
Log.err("Block &ly'@'&lr has an null region!", block);
|
||||
}
|
||||
|
||||
@@ -187,6 +187,11 @@ public class ImagePacker{
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean found(){
|
||||
return !invalid;
|
||||
}
|
||||
|
||||
static void validate(TextureRegion region){
|
||||
if(((GenRegion)region).invalid){
|
||||
ImagePacker.err("Region does not exist: @", ((GenRegion)region).name);
|
||||
|
||||
Reference in New Issue
Block a user