Merge pull request #849 from universe-st/PR-Branch

修复本体扩展在开启时出现一个英文栏的问题
This commit is contained in:
Spmario233 2024-01-24 21:07:53 +08:00 committed by GitHub
commit 88aecb4a81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export const importMode = generateImportFunction('mode', (name) => `../../mode/$
*/ */
function generateImportFunction(type, pathParser) { function generateImportFunction(type, pathParser) {
return async (name) => { return async (name) => {
if(type == 'extension' && !game.hasExtension(name)){ if(type == 'extension' && !game.hasExtension(name) && !lib.config.all.stockextension.includes(name)){
await game.import(type,createEmptyExtension(name)); await game.import(type,createEmptyExtension(name));
return; return;
} }