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,11 +551,11 @@ public final class client extends GameShell {
|
||||||
BufferedImage image = robot.createScreenCapture(captureSize);
|
BufferedImage image = robot.createScreenCapture(captureSize);
|
||||||
File outputFile = new File(outputFolder, filename);
|
File outputFile = new File(outputFolder, filename);
|
||||||
ImageIO.write(image, "png", outputFile);
|
ImageIO.write(image, "png", outputFile);
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
} catch (AWTException e) {
|
} catch (AWTException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue