Fix build error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2024-08-05 21:41:39 +02:00
parent 7cc01d9d29
commit 4d2d3403d6

@ -41,14 +41,24 @@ public class CursorMover extends TimerTask
destX = RunnerUtil.SCREEN_WIDTH - 5; destX = RunnerUtil.SCREEN_WIDTH - 5;
destY = 5; destY = 5;
try {
singleStepMovementTask = new SingleStepMovementTask(destX, destY, true); singleStepMovementTask = new SingleStepMovementTask(destX, destY, true);
} catch (AWTException e) {
LOGGER.error(e);
return;
}
iteration = 0; iteration = 0;
} else { } else {
destX = random.nextInt(RunnerUtil.SCREEN_WIDTH); destX = random.nextInt(RunnerUtil.SCREEN_WIDTH);
destY = random.nextInt(RunnerUtil.SCREEN_HEIGHT); destY = random.nextInt(RunnerUtil.SCREEN_HEIGHT);
try {
singleStepMovementTask = new SingleStepMovementTask(destX, destY, false); singleStepMovementTask = new SingleStepMovementTask(destX, destY, false);
} catch (AWTException e) {
LOGGER.error(e);
return;
}
iteration++; iteration++;
} }