Skip to content

Commit 81b4bde

Browse files
committed
oopsie
1 parent 67b2d99 commit 81b4bde

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

common/src/main/kotlin/com/lambda/gui/impl/clickgui/windows/ModuleWindow.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ package com.lambda.gui.impl.clickgui.windows
22

33
import com.lambda.gui.api.GuiEvent
44
import com.lambda.gui.api.component.ListWindow
5-
import com.lambda.gui.api.component.WindowComponent
65
import com.lambda.gui.impl.clickgui.AbstractClickGui
76
import com.lambda.gui.impl.clickgui.buttons.ModuleButton
8-
import com.lambda.module.modules.client.ClickGui
97

108
abstract class ModuleWindow(
119
override var title: String,
@@ -15,12 +13,8 @@ abstract class ModuleWindow(
1513
) : ListWindow<ModuleButton>(owner) {
1614
override fun onEvent(e: GuiEvent) {
1715
if (e is GuiEvent.Tick) {
18-
contentComponents.children.apply {
19-
sortBy {
20-
it.module.name
21-
}
22-
23-
16+
contentComponents.children.sortBy {
17+
it.module.name
2418
}
2519
}
2620

0 commit comments

Comments
 (0)