Merge pull request #849 from universe-st/PR-Branch
修复本体扩展在开启时出现一个英文栏的问题
This commit is contained in:
commit
88aecb4a81
|
@ -34,7 +34,7 @@ export const importMode = generateImportFunction('mode', (name) => `../../mode/$
|
|||
*/
|
||||
function generateImportFunction(type, pathParser) {
|
||||
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));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue