Fixed issue where addons were disabled incorrectly.

This commit is contained in:
tastybento 2019-12-29 14:56:22 +00:00
parent 602b5b5c5c
commit e290a46c4e

View File

@ -166,7 +166,7 @@ public class AddonsManager {
plugin.getBlueprintsManager().loadBlueprintBundles(gameMode);
}
addon.onEnable();
if (!addon.isEnabled()) {
if (addon.getState().equals(State.DISABLED)) {
plugin.log(addon.getDescription().getName() + " is disabled.");
return;
}