Skip to content

Commit

Permalink
fix: mcbbs api sets by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jul 20, 2020
1 parent 53c4aac commit 1005f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/universal/store/modules/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const mod: SettingModule = {
allowPrerelease: false,
autoInstallOnAppQuit: false,
autoDownload: false,
apiSetsPreference: 'mojang',
apiSetsPreference: 'mcbbs',
apiSets: [{ name: 'mcbbs', url: 'https://download.mcbbs.net' }, { name: 'bmcl', url: 'https://bmclapi2.bangbang93.com' }],
version: '',
build: 0,
Expand Down Expand Up @@ -133,7 +133,7 @@ const mod: SettingModule = {
state.autoDownload = config.autoDownload || false;
state.autoInstallOnAppQuit = config.autoDownload || false;
state.allowPrerelease = config.allowPrerelease || false;
state.apiSetsPreference = typeof config.apiSetsPreference === 'string' ? config.apiSetsPreference : 'mojang';
state.apiSetsPreference = typeof config.apiSetsPreference === 'string' ? config.apiSetsPreference : 'mcbbs';
},
settings(state, settings) {
// Object.assign(state.settings, settings);
Expand Down

0 comments on commit 1005f5e

Please sign in to comment.