From 57c589679445885c32fcbaa6d7aae54b414f4e3c Mon Sep 17 00:00:00 2001 From: 1zuna <1zuna@ccbluex.net> Date: Tue, 17 Dec 2024 10:08:05 +0100 Subject: [PATCH] fix(ClientSpoofer): run when not in-game (#4937) --- .../features/module/modules/exploit/ModuleSpoofer.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/exploit/ModuleSpoofer.kt b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/exploit/ModuleSpoofer.kt index 1d71546d9b1..bfd97dc2ba0 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/exploit/ModuleSpoofer.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/exploit/ModuleSpoofer.kt @@ -20,6 +20,7 @@ package net.ccbluex.liquidbounce.features.module.modules.exploit import net.ccbluex.liquidbounce.config.types.Choice import net.ccbluex.liquidbounce.config.types.ChoiceConfigurable +import net.ccbluex.liquidbounce.features.misc.HideAppearance.isDestructed import net.ccbluex.liquidbounce.features.module.Category import net.ccbluex.liquidbounce.features.module.ClientModule @@ -33,6 +34,9 @@ object ModuleSpoofer : ClientModule("ClientSpoofer", Category.EXPLOIT) { arrayOf(Vanilla, Lunar, Cheatbreaker, Custom) ) + override val running: Boolean + get() = enabled && !isDestructed + fun clientBrand(brand: String) = if (running) mode.activeChoice.getBrand() else brand private object Vanilla : SpoofMode("Vanilla") {