Skip to content

Commit 9d07cc1

Browse files
author
Your Name
committed
Rename AutoLog module to AutoDisconnect
In most clients this module is called AutoDisconnect so as to avoid confusion I think renaming it would be very good :)
1 parent c819baa commit 9d07cc1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/kotlin/com/lambda/client/gui/mc/LambdaGuiDisconnected.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.lambda.client.gui.mc
22

3-
import com.lambda.client.module.modules.combat.AutoLog
3+
import com.lambda.client.module.modules.combat.AutoDisconnect
44
import com.lambda.client.util.threads.mainScope
55
import kotlinx.coroutines.delay
66
import kotlinx.coroutines.launch
@@ -15,22 +15,22 @@ class LambdaGuiDisconnected(private val reason: Array<String>, private val scree
1515

1616
buttonList.add(GuiButton(0, width / 2 - 100, 200, "Okay"))
1717
if (!disable) {
18-
buttonList.add(GuiButton(1, width / 2 - 100, 220, "Disable AutoLog"))
18+
buttonList.add(GuiButton(1, width / 2 - 100, 220, "Disable AutoDisconnect"))
1919
} else {
2020
disable()
2121
}
2222
}
2323

2424
override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
2525
drawBackground(0)
26-
drawCenteredString(fontRenderer, "[AutoLog] Logged because:", width / 2, 80, 0x9B90FF)
26+
drawCenteredString(fontRenderer, "[AutoDisconnect] Logged because:", width / 2, 80, 0x9B90FF)
2727
for ((index, reason) in reason.withIndex()) {
2828
drawCenteredString(fontRenderer, reason, width / 2, 94 + (14 * index), 0xFFFFFF)
2929
}
3030

3131
drawCenteredString(fontRenderer, "Logged out at: $logoutTime", width / 2, 140, 0xFFFFFFF)
3232

33-
if (!disable) drawCenteredString(fontRenderer, "Disabled AutoLog", width / 2, 224, 0xDE413C)
33+
if (!disable) drawCenteredString(fontRenderer, "Disabled AutoDisconnect", width / 2, 224, 0xDE413C)
3434
super.drawScreen(mouseX, mouseY, partialTicks)
3535
}
3636

@@ -47,7 +47,7 @@ class LambdaGuiDisconnected(private val reason: Array<String>, private val scree
4747
private fun disable() {
4848
mainScope.launch {
4949
delay(250L)
50-
AutoLog.disable()
50+
AutoDisconnect.disable()
5151
}
5252
}
5353

src/main/kotlin/com/lambda/client/module/modules/combat/AutoLog.kt renamed to src/main/kotlin/com/lambda/client/module/modules/combat/AutoDisconnect.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.lambda.client.manager.managers.CombatManager
77
import com.lambda.client.manager.managers.FriendManager
88
import com.lambda.client.module.Category
99
import com.lambda.client.module.Module
10-
import com.lambda.client.module.modules.combat.AutoLog.Reasons.*
10+
import com.lambda.client.module.modules.combat.AutoDisconnect.Reasons.*
1111
import com.lambda.client.util.EntityUtils.isFakeOrSelf
1212
import com.lambda.client.util.combat.CombatUtils.scaledHealth
1313
import com.lambda.client.util.items.allSlots
@@ -25,9 +25,9 @@ import net.minecraft.util.text.TextComponentString
2525
import net.minecraftforge.fml.common.gameevent.TickEvent
2626
import java.time.LocalTime
2727

28-
object AutoLog : Module(
29-
name = "AutoLog",
30-
description = "Automatically log when in danger or on low health",
28+
object AutoDisconnect : Module(
29+
name = "AutoDisconnect",
30+
description = "Automatically disconnects when in danger or on low health",
3131
category = Category.COMBAT,
3232
alwaysListening = true
3333
) {

0 commit comments

Comments
 (0)