Skip to content

Commit 1a7c78f

Browse files
committed
Fix some new internal symbol usage warnings
1 parent e670cb9 commit 1a7c78f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/main/kotlin/facet/MinecraftFacetDetector.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/main/kotlin/util/utils.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)