From 4a4d1bc46a803f20aa25d63448195f699ea6c0d2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 7 Aug 2017 13:55:24 -0700 Subject: [PATCH] Fix not clearing unloaded plugins. --- src/main/java/org/nwapw/abacus/plugin/PluginManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/nwapw/abacus/plugin/PluginManager.java b/src/main/java/org/nwapw/abacus/plugin/PluginManager.java index e40b481..9ec48b4 100644 --- a/src/main/java/org/nwapw/abacus/plugin/PluginManager.java +++ b/src/main/java/org/nwapw/abacus/plugin/PluginManager.java @@ -209,6 +209,9 @@ public class PluginManager { if (disabledPlugins.contains(plugin.getClass().getName())) continue; plugin.disable(); } + registeredFunctions.clear(); + registeredOperators.clear(); + registeredNumberImplementations.clear(); cachedInterfaceImplementations.clear(); cachedPi.clear(); listeners.forEach(e -> e.onUnload(this));