Kill switch addon for the CatLean
On trigger the client stops existing inside the running game: nothing ticks, nothing renders, no key is read, no packet is touched. Only a game restart brings it back.
Category Utility -> Misc -> Self Destruct or the ^selfdestruct command.
| Setting | Default | Effect |
|---|---|---|
Trigger |
Instant |
Confirm makes the first toggle arm only |
Confirm Ms |
10000 |
confirmation window for Confirm |
Silent |
true |
leave nothing behind - no chat, no console line |
Each step swallows its own errors - a failure in one can't stop the rest.
- Screens - closes the catlean clickgui before the sweep, to keep it from freezing
- Bus - drains Gofra, the client's one dispatch table - no
@Flowmethod runs again - MixinConfigs - empties the client's mixin configs
- RenderFlags - resets the render state flags a module left on
- Renderer - reloads the chunks, same as F3+A
- ModList - drops catlean and its addons from modmenu and the loader
- Resources - reloads resource packs, which drops the catlean packs out
- Entrypoints - clears the loader entrypoint cache that keeps the client's initializers and this addon alive
- Textures - releases the catlean textures and the modmenu icons from the texture manager
- ChatLog - removes our own lines from chat history
- Threads - interrupts background threads the client spawned
- JarRelease - frees catlean and addon jar handles (Windows lock), letting you delete the files from
mods/without a restart - Log - scrubs catlean lines from the live game log
p.s. A teardown can't unload the client classes or un-weave the mixins, so the restore path stays a game restart, but the cleanup above is about as close to complete as a running client allows - everything catlean left in memory and on disk gets scrubbed.