Skip to content

Commit

Permalink
fix: Should not scan mods folder as mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 29, 2023
1 parent bacc8a3 commit ddbf131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-runtime/mod/InstanceModsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class InstanceModsService extends AbstractService implements IInstanceMod
state.mods = await scan(basePath)

const watcher = watch(basePath, async (event, filePath) => {
if (shouldIgnoreFile(filePath) && filePath !== basePath) return
if (shouldIgnoreFile(filePath) || filePath === basePath) return
if (event === 'update') {
const [resource] = await this.resourceService.importResources([{ path: filePath, domain: ResourceDomain.Mods }], true)
if (isModResource(resource)) {
Expand Down

0 comments on commit ddbf131

Please sign in to comment.