Added entries for all new smelters
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user