File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ class MinecraftFacetDetector : StartupActivity {
163163 if (m.name.startsWith(" SpongeAPI" , ignoreCase = true )) {
164164 // We don't want want to add parent modules in module groups
165165 val moduleManager = ModuleManager .getInstance(m.project)
166- val groupPath = moduleManager.getModuleGroupPath (m)
167- if (groupPath == null ) {
166+ val groupPath = moduleManager.getModuleGrouper( null ).getGroupPath (m)
167+ if (groupPath.isEmpty() ) {
168168 platformKinds.add(SPONGE_LIBRARY_KIND )
169169 return @forEach true
170170 }
Original file line number Diff line number Diff line change @@ -226,7 +226,11 @@ fun Module.findChildren(): Set<Module> {
226226 continue
227227 }
228228
229- val path = manager.getModuleGroupPath(m) ? : continue
229+ val path = manager.getModuleGrouper(null ).getGroupPath(m)
230+ if (path.isEmpty()) {
231+ continue
232+ }
233+
230234 val namedModule = manager.findModuleByName(path.last()) ? : continue
231235
232236 if (namedModule != this ) {
You can’t perform that action at this time.
0 commit comments