Add some basic tests (having minecraft unloaded is very limiting)

This commit is contained in:
mezz committed 2015-06-22 23:34:26 -07:00
1 parent 306ba82848
commit 348551ed8f
5 files changed
+123 -1

No files matched your search

@@ -97,6 +97,10 @@ public class PluginManager {
PLANTMEGAPACK(new PluginPlantMegaPack()),
WITCHERY(new PluginWitchery());
static {
ForestryAPI.enabledPlugins = new HashSet<String>();
}
private final ForestryPlugin instance;
private final boolean canBeDisabled;
@@ -220,7 +224,6 @@ public class PluginManager {
unloadedModules.removeAll(toLoad);
loadedModules.addAll(toLoad);
ForestryAPI.enabledPlugins = new HashSet<String>();
for (Module m : loadedModules) {
ForestryAPI.enabledPlugins.add(m.toString());
}