// Find target.
MonsterInstance monster = null;
double closestDistance = Double.MAX_VALUE;
TARGET: for (MonsterInstance nearby : World.getInstance().getVisibleObjectsInRange(player, MonsterInstance.class, player.getAutoPlaySettings().isLongRange() ? 600 : 1400 ))
only need to invert these values (isLongRange() ? 600 : 1400 ))) in the file AutoPlayTaskManager.java to fix the long and short range, compile and thats it.