@Override
	public void run() {
		while (running) {
			synchronized (lock) {
				if (cacheIndex < 500) {
					mouseXCache[cacheIndex] = client.mouseX;
					mouseYCache[cacheIndex] = client.mouseY;
					cacheIndex++;
				}
			}
			try {
				Thread.sleep(50L);
			} catch (Exception exception) {
			}
		}
	}