Skip to content

Commit 519b96d

Browse files
committed
Update LambdaScreen.kt
1 parent 625ad4d commit 519b96d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

common/src/main/kotlin/com/lambda/newgui/LambdaScreen.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ import com.lambda.Lambda.mc
2121
import com.lambda.event.Muteable
2222
import com.lambda.event.events.RenderEvent
2323
import com.lambda.event.events.TickEvent
24-
import com.lambda.event.listener.SafeListener.Companion.listener
25-
import com.lambda.graphics.RenderMain
24+
import com.lambda.event.listener.SafeListener.Companion.listen
2625
import com.lambda.gui.api.GuiEvent
2726
import com.lambda.newgui.component.layout.Layout
28-
import com.lambda.newgui.component.core.UIBuilder
2927
import com.lambda.util.KeyCode
3028
import com.lambda.util.Mouse
3129
import com.lambda.util.Nameable
32-
import com.lambda.util.math.Rect
3330
import com.lambda.util.math.Vec2d
3431
import com.mojang.blaze3d.systems.RenderSystem.recordRenderCall
3532
import net.minecraft.client.gui.DrawContext
@@ -49,12 +46,12 @@ class LambdaScreen(
4946
val isOpen get() = mc.currentScreen == this
5047

5148
init {
52-
listener<RenderEvent.GUI.Scaled> { event ->
49+
listen<RenderEvent.GUI.Scaled> { event ->
5350
screenSize = event.screenSize
5451
layout.onEvent(GuiEvent.Render())
5552
}
5653

57-
listener<TickEvent.Pre> {
54+
listen<TickEvent.Pre> {
5855
layout.onEvent(GuiEvent.Tick())
5956
}
6057
}

0 commit comments

Comments
 (0)