Skip to content

Commit

Permalink
fix(ClientSpoofer): run when not in-game (#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 authored Dec 17, 2024
1 parent f86b606 commit 57c5896
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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") {
Expand Down

0 comments on commit 57c5896

Please sign in to comment.