From ce372dad94291ed493b6f9947df296d7741f3e87 Mon Sep 17 00:00:00 2001 From: lv <~@l1v.in> Date: Sat, 10 Apr 2021 20:56:46 -0400 Subject: [PATCH] fix: Incorrect spellings of `color` (very important commit) Signed-off-by: lv <~@l1v.in> --- .../kamiblue/client/command/commands/SignBookCommand.kt | 2 +- .../kamiblue/client/module/modules/combat/CrystalESP.kt | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/org/kamiblue/client/command/commands/SignBookCommand.kt b/src/main/kotlin/org/kamiblue/client/command/commands/SignBookCommand.kt index a79e3116..55b48319 100644 --- a/src/main/kotlin/org/kamiblue/client/command/commands/SignBookCommand.kt +++ b/src/main/kotlin/org/kamiblue/client/command/commands/SignBookCommand.kt @@ -13,7 +13,7 @@ import org.kamiblue.commons.extension.max object SignBookCommand : ClientCommand( name = "signbook", alias = arrayOf("sign"), - description = "Colored book names. &f#n&7 for a new line and &f&&7 for colour codes" + description = "Colored book names. &f#n&7 for a new line and &f&&7 for color codes" ) { init { greedy("title") { titleArg -> diff --git a/src/main/kotlin/org/kamiblue/client/module/modules/combat/CrystalESP.kt b/src/main/kotlin/org/kamiblue/client/module/modules/combat/CrystalESP.kt index 551c73df..81da6e7d 100644 --- a/src/main/kotlin/org/kamiblue/client/module/modules/combat/CrystalESP.kt +++ b/src/main/kotlin/org/kamiblue/client/module/modules/combat/CrystalESP.kt @@ -12,7 +12,6 @@ import org.kamiblue.client.event.events.RenderOverlayEvent import org.kamiblue.client.event.events.RenderWorldEvent import org.kamiblue.client.manager.managers.CombatManager import org.kamiblue.client.manager.managers.HotbarManager.serverSideItem -import org.kamiblue.client.manager.managers.PlayerPacketManager import org.kamiblue.client.module.Category import org.kamiblue.client.module.Module import org.kamiblue.client.util.Quad @@ -56,7 +55,7 @@ internal object CrystalESP : Module( private val animationScale = setting("Animation Scale", 1.0f, 0.0f..2.0f, 0.1f, { page.value == Page.CRYSTAL_ESP && crystalESP.value }) private val crystalRange = setting("Crystal ESP Range", 16.0f, 0.0f..16.0f, 0.5f, { page.value == Page.CRYSTAL_ESP }) - private val colour by setting("Color", ColorHolder(155, 144, 255), false, { page.value == Page.CRYSTAL_ESP_COLOR && crystalESP.value }) + private val color by setting("Color", ColorHolder(155, 144, 255), false, { page.value == Page.CRYSTAL_ESP_COLOR && crystalESP.value }) private val aFilled = setting("Filled Alpha", 47, 0..255, 1, { page.value == Page.CRYSTAL_ESP_COLOR && crystalESP.value && filled.value }) private val aOutline = setting("Outline Alpha", 127, 0..255, 1, { page.value == Page.CRYSTAL_ESP_COLOR && crystalESP.value && outline.value }) private val aTracer = setting("Tracer Alpha", 200, 0..255, 1, { page.value == Page.CRYSTAL_ESP_COLOR && crystalESP.value && tracer.value }) @@ -163,8 +162,8 @@ internal object CrystalESP : Module( for ((pos, quad) in renderCrystalMap) { val progress = getAnimationProgress(quad.third, quad.fourth) val box = AxisAlignedBB(pos).shrink(0.5 - progress * 0.5) - colour.a = (progress * 255.0f).toInt() - renderer.add(box, colour) + color.a = (progress * 255.0f).toInt() + renderer.add(box, color) } renderer.render(true)