Skip to content

Commit

Permalink
another module loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LabyStudio committed Feb 24, 2021
1 parent fdeb070 commit 25de262
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -241,8 +241,9 @@ public Module<? extends Addon> loadModule(Addon addon, Class<? extends Module> m
addon.getModules().add(module);

// Load all necessary module values from the config
boolean hasActiveModules = addon.hasActiveModules();
module.onLoadConfig(moduleConfig);
module.setEnabled(false);
addon.onModuleVisibilityChanged(module, module.isEnabled(), hasActiveModules);

return module;
}
Expand Down

0 comments on commit 25de262

Please sign in to comment.