Fix #739 Trade station crashes when loaded without name set

This commit is contained in:
mezz committed 2015-06-27 21:16:48 -07:00
1 parent 1b7d64a7b5
commit e9c4c416f5
9 files changed
+139 -71

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());
}