mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Fix backward compatibility
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user