File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
common/src/main/kotlin/com/lambda/module/modules/client Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717
1818package com.lambda.module.modules.client
1919
20+ import com.lambda.Lambda.mc
2021import com.lambda.event.events.ConnectionEvent
2122import com.lambda.event.events.TickEvent
2223import com.lambda.event.listener.UnsafeListener.Companion.listenUnsafe
2324import com.lambda.graphics.animation.Animation.Companion.exp
2425import com.lambda.graphics.animation.AnimationTicker
26+ import com.lambda.gui.LambdaScreen
2527import com.lambda.module.Module
2628import com.lambda.module.tag.ModuleTag
2729import java.awt.Color
@@ -59,7 +61,7 @@ object GuiSettings : Module(
5961
6062 private var targetScale = 2.0
6163 get() {
62- val update = System .currentTimeMillis() - lastChange > 200 || ! ClickGui . SCREEN .isOpen
64+ val update = System .currentTimeMillis() - lastChange > 200 || mc.currentScreen !is LambdaScreen
6365 if (update) field = scaleSetting / 100.0 * 2.0
6466 return field
6567 }
You can’t perform that action at this time.
0 commit comments