Reconstructor sprites / Bugfixes

This commit is contained in:
Anuken
2020-06-13 16:27:15 -04:00
parent f55fb48ea7
commit b48736e771
35 changed files with 6830 additions and 6735 deletions

View File

@@ -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);
}

View File

@@ -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);