Added entries for all new smelters

This commit is contained in:
Anuken
2018-06-15 18:47:53 -04:00
parent 11d2ada6b3
commit 09ebb7a01c
21 changed files with 875 additions and 834 deletions

View File

@@ -74,12 +74,15 @@ public class TextureGenerator {
}
};
Core.atlas.setErrorRegion("error");
image = ImageIO.read(new File(spritesFolder + "/sprites.png"));
graphics = image.createGraphics();
generateBlocks();
}
/**Generates full block icons for use in the editor.*/
static void generateBlocks() throws IOException {
for(Block block : Block.all()){
@@ -89,6 +92,11 @@ public class TextureGenerator {
continue;
}
if(regions[0] == null){
System.err.println("Error in block \"" + block.name + "\": null region!");
System.exit(-1);
}
BufferedImage target = new BufferedImage(regions[0].getRegionWidth(), regions[0].getRegionHeight(), BufferedImage.TYPE_INT_ARGB);
Graphics2D tg = target.createGraphics();