diff --git a/src/main/kotlin/com/lambda/client/gui/mc/LambdaGuiDisconnected.kt b/src/main/kotlin/com/lambda/client/gui/mc/LambdaGuiDisconnected.kt index 6ee09046f..18ea9b2e5 100644 --- a/src/main/kotlin/com/lambda/client/gui/mc/LambdaGuiDisconnected.kt +++ b/src/main/kotlin/com/lambda/client/gui/mc/LambdaGuiDisconnected.kt @@ -1,6 +1,6 @@ package com.lambda.client.gui.mc -import com.lambda.client.module.modules.combat.AutoLog +import com.lambda.client.module.modules.combat.AutoDisconnect import com.lambda.client.util.threads.mainScope import kotlinx.coroutines.delay import kotlinx.coroutines.launch @@ -15,7 +15,7 @@ class LambdaGuiDisconnected(private val reason: Array, private val scree buttonList.add(GuiButton(0, width / 2 - 100, 200, "Okay")) if (!disable) { - buttonList.add(GuiButton(1, width / 2 - 100, 220, "Disable AutoLog")) + buttonList.add(GuiButton(1, width / 2 - 100, 220, "Disable AutoDisconnect")) } else { disable() } @@ -23,14 +23,14 @@ class LambdaGuiDisconnected(private val reason: Array, private val scree override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) { drawBackground(0) - drawCenteredString(fontRenderer, "[AutoLog] Logged because:", width / 2, 80, 0x9B90FF) + drawCenteredString(fontRenderer, "[AutoDisconnect] Logged because:", width / 2, 80, 0x9B90FF) for ((index, reason) in reason.withIndex()) { drawCenteredString(fontRenderer, reason, width / 2, 94 + (14 * index), 0xFFFFFF) } drawCenteredString(fontRenderer, "Logged out at: $logoutTime", width / 2, 140, 0xFFFFFFF) - if (!disable) drawCenteredString(fontRenderer, "Disabled AutoLog", width / 2, 224, 0xDE413C) + if (!disable) drawCenteredString(fontRenderer, "Disabled AutoDisconnect", width / 2, 224, 0xDE413C) super.drawScreen(mouseX, mouseY, partialTicks) } @@ -47,7 +47,7 @@ class LambdaGuiDisconnected(private val reason: Array, private val scree private fun disable() { mainScope.launch { delay(250L) - AutoLog.disable() + AutoDisconnect.disable() } } diff --git a/src/main/kotlin/com/lambda/client/module/modules/combat/AutoLog.kt b/src/main/kotlin/com/lambda/client/module/modules/combat/AutoDisconnect.kt similarity index 96% rename from src/main/kotlin/com/lambda/client/module/modules/combat/AutoLog.kt rename to src/main/kotlin/com/lambda/client/module/modules/combat/AutoDisconnect.kt index ebc75a412..1a9de12ec 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/combat/AutoLog.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/combat/AutoDisconnect.kt @@ -7,7 +7,7 @@ import com.lambda.client.manager.managers.CombatManager import com.lambda.client.manager.managers.FriendManager import com.lambda.client.module.Category import com.lambda.client.module.Module -import com.lambda.client.module.modules.combat.AutoLog.Reasons.* +import com.lambda.client.module.modules.combat.AutoDisconnect.Reasons.* import com.lambda.client.util.EntityUtils.isFakeOrSelf import com.lambda.client.util.combat.CombatUtils.scaledHealth import com.lambda.client.util.items.allSlots @@ -25,9 +25,9 @@ import net.minecraft.util.text.TextComponentString import net.minecraftforge.fml.common.gameevent.TickEvent import java.time.LocalTime -object AutoLog : Module( - name = "AutoLog", - description = "Automatically log when in danger or on low health", +object AutoDisconnect : Module( + name = "AutoDisconnect", + description = "Automatically disconnects when in danger or on low health", category = Category.COMBAT, alwaysListening = true ) {