Small bug fixes (plugin system)

This commit is contained in:
DJj123dj
2025-01-07 19:36:29 +01:00
parent e65a092bc0
commit abd672dd3b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ export class ODPluginManager extends ODManager<ODPlugin> {
}
/**Check if a plugin has loaded successfully.*/
isPluginLoaded(id:ODValidId){
isPluginLoaded(id:ODValidId): boolean {
const newId = new ODId(id)
const plugin = this.get(newId)
return (plugin && plugin.executed)
return (plugin !== null && plugin.executed)
}
}