We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b476148 commit 9ba5a7aCopy full SHA for 9ba5a7a
common/src/main/kotlin/com/lambda/module/modules/client/NewCGui.kt
@@ -41,10 +41,14 @@ object NewCGui : Module(
41
tags.forEachIndexed { i, tag ->
42
val windowPosition = Vec2d.ONE * 20.0 + Vec2d.RIGHT * ((115.0 * i) + (i + 1) * 4)
43
44
- window(position = windowPosition, title = tag.name, autoResize = Window.AutoResize.ByConfig) {
45
- val tagModules = modules.filter { it.defaultTags.first() == tag }
46
-
47
- tagModules.forEach { module ->
+ window(
+ position = windowPosition,
+ title = tag.name,
+ autoResize = Window.AutoResize.ByConfig
48
+ ) {
49
+ modules.filter {
50
+ it.defaultTags.firstOrNull() == tag
51
+ }.forEach { module ->
52
moduleLayout(module)
53
}
54
0 commit comments