Fix backward compatibility

This commit is contained in:
Nedelosk committed 2017-11-03 23:10:10 +01:00
1 parent 11e8a06a48
commit 9814601ff2
1 file changed
+4
@@ -217,9 +217,13 @@ public class ModuleManager implements IModuleManager {
}
ForestryAPI.enabledModules = new HashSet<>();
ForestryAPI.enabledPlugins = new HashSet<>();
for (IForestryModule module : sortedModules.values()) {
ForestryModule info = module.getClass().getAnnotation(ForestryModule.class);
ForestryAPI.enabledModules.add(new ResourceLocation(info.containerID(), info.moduleID()));
if(module instanceof BlankForestryModule){
ForestryAPI.enabledPlugins.add(info.containerID() + "." + info.moduleID());
}
}
Locale.setDefault(locale);