Skip to content

Commit bd40575

Browse files
committed
disable fake player on shutdown
1 parent 4d7df22 commit bd40575

File tree

1 file changed

+3
-0
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/combat

1 file changed

+3
-0
lines changed

common/src/main/kotlin/com/lambda/module/modules/combat/FakePlayer.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.lambda.http.Method
2222
import com.lambda.http.request
2323
import com.lambda.module.Module
2424
import com.lambda.module.tag.ModuleTag
25+
import com.lambda.threading.onShutdown
2526
import com.lambda.threading.runSafeConcurrent
2627
import com.mojang.authlib.GameProfile
2728
import net.minecraft.client.network.OtherClientPlayerEntity
@@ -68,6 +69,8 @@ object FakePlayer : Module(
6869
onDisable {
6970
deletePlayer()
7071
}
72+
73+
onShutdown { disable() }
7174
}
7275

7376
private fun SafeContext.spawnPlayer(profile: GameProfile) {

0 commit comments

Comments
 (0)