mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
Catch all exceptions for screenshots
This makes the code more reliable.
This commit is contained in:
parent
3762aed133
commit
2079ec7459
1 changed files with 3 additions and 3 deletions
|
|
@ -551,10 +551,10 @@ public final class client extends GameShell {
|
|||
BufferedImage image = robot.createScreenCapture(captureSize);
|
||||
File outputFile = new File(outputFolder, filename);
|
||||
ImageIO.write(image, "png", outputFile);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (AWTException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue