Skip to content

Commit

Permalink
Merge pull request #36 from modos189/fix/plugin_event2
Browse files Browse the repository at this point in the history
Fix plugin_event event: core script update should always trigger the event
  • Loading branch information
modos189 authored Oct 2, 2024
2 parents 8b86499 + cd67c20 commit e404946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lib-iitc-manager",
"version": "1.9.2",
"version": "1.9.3",
"description": "Library for managing IITC plugins",
"main": "src/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ export class Worker {
}

// Updating a disabled plugin should not trigger the event
if (event !== 'remove' && plugins[uid]?.status !== 'on') {
if (!isCore && event !== 'remove' && plugins[uid]?.status !== 'on') {
delete plugins[uid];
}
}
Expand Down

0 comments on commit e404946

Please sign in to comment.