This commit is contained in:
mrbesen 2017-05-28 19:52:51 +02:00
parent 42fc334ed4
commit ac05f9070e
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,8 @@ public class Clicker implements Runnable{
* @return true, if there are more then 70px alike enough
*/
private boolean checkOK(Point p, Robot bot, Color goalcolor) {
if(p == null | bot == null | goalcolor == null)
return false;
//long start = System.currentTimeMillis();
int count = 0;
BufferedImage img = bot.createScreenCapture(new Rectangle(p.x-10, p.y-10, 20, 20));//smile