Skip to content

Commit 9a4f01c

Browse files
committed
Update CrystalAura.kt
1 parent 1fc3ad0 commit 9a4f01c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/module/modules/combat/CrystalAura.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ object CrystalAura : Module(
147147
initialDelay = 0L,
148148
period = 1L
149149
) {
150-
if (CrystalAura.isDisabled || updateMode != UpdateMode.Async) return@fixedRateTimer
150+
if (isDisabled || updateMode != UpdateMode.Async) return@fixedRateTimer
151151

152152
runSafe {
153153
// timer may spam faster than main thread computes (game freezes completely at the beginning of the frame)
@@ -167,7 +167,7 @@ object CrystalAura : Module(
167167
initialDelay = 0L,
168168
period = 1000L
169169
) {
170-
if (CrystalAura.isDisabled || !debug) return@fixedRateTimer
170+
if (isDisabled || !debug) return@fixedRateTimer
171171

172172
runSafeGameScheduled {
173173
info((decay.size.toDouble() * 0.3333).roundToStep(0.1).toString())
@@ -352,7 +352,7 @@ object CrystalAura : Module(
352352
val crystalBox = pos.crystalBox
353353

354354
val entitiesNearby = fastEntitySearch<Entity>(3.5, pos)
355-
val crystals = entitiesNearby.filterIsInstance<EndCrystalEntity>() as MutableList
355+
val crystals = entitiesNearby.filterIsInstance<EndCrystalEntity>()
356356
val otherEntities = entitiesNearby - crystals + player
357357

358358
if (otherEntities.any {

0 commit comments

Comments
 (0)