Skip to content

Commit 9ba36c9

Browse files
committed
Re-added tag null safety
1 parent a516060 commit 9ba36c9

File tree

1 file changed

+3
-3
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/client

1 file changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/module/modules/client/NewCGui.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ object NewCGui : Module(
3939
val windowPosition = Vec2d.ONE * 20.0 + Vec2d.RIGHT * ((115.0 * i) + (i + 1) * 4)
4040

4141
moduleWindow(tag, windowPosition) {
42-
val tagModules = modules.filter { it.defaultTags.first() == tag }
43-
44-
tagModules.forEach { module ->
42+
modules.filter {
43+
it.defaultTags.firstOrNull() == tag
44+
}.forEach { module ->
4545
moduleLayout(module)
4646
}
4747
}

0 commit comments

Comments
 (0)