From c24b8074ab7c463439f8748bbe6ca519937afe28 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Wed, 5 Jun 2019 00:27:28 +0200 Subject: [PATCH] Fixed Discord reset TBMCPlugins/DiscordPlugin#97 --- BuildConfigUpdater/BuildConfigUpdater.iml | 1 + .../src/main/java/buttondevteam/core/ComponentManager.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BuildConfigUpdater/BuildConfigUpdater.iml b/BuildConfigUpdater/BuildConfigUpdater.iml index 0052de0..6fc1435 100644 --- a/BuildConfigUpdater/BuildConfigUpdater.iml +++ b/BuildConfigUpdater/BuildConfigUpdater.iml @@ -17,6 +17,7 @@ + diff --git a/ButtonCore/src/main/java/buttondevteam/core/ComponentManager.java b/ButtonCore/src/main/java/buttondevteam/core/ComponentManager.java index db9c2e3..c8a28b8 100644 --- a/ButtonCore/src/main/java/buttondevteam/core/ComponentManager.java +++ b/ButtonCore/src/main/java/buttondevteam/core/ComponentManager.java @@ -38,7 +38,7 @@ public final class ComponentManager { public static void unregComponents(T plugin) { while (!plugin.getComponentStack().empty()) //Unregister in reverse order Component.unregisterComponent(plugin, (Component) plugin.getComponentStack().pop()); //Components are pushed on register - componentsEnabled = false; + //componentsEnabled = false; - continue enabling new components after a plugin gets disabled } /**