mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 01:54:40 +00:00
Fix #739 Trade station crashes when loaded without name set
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user