About Hamunii Detour Context Dispose Fix Valheim Publish
From ThunderstoreA BepInEx patcher to fix MonoMod.RuntimeDetour's DetourContext.Dispose not working. By Hamunii.
DetourContext.Dispose Fix
This BepInEx Patcher applies the fix from Fix DetourContext.Dispose #102, which makes MonoMod.RuntimeDetour.DetourContext.Dispose work properly. This is only useful if you are using a version of MonoMod.RuntimeDetour which doesn't have this patch.
If the patcher doesn't find the IL code it is looking to patch, it will print Nothing to patch. to the BepInEx console. If this is the case, this patcher isn't needed.
Why This Matters
If you are using DetourContext, e.g.:
using(new DetourContext(){ Priority = 100 })
{
On.StartOfRound.Awake += Hook_2;
}
On.StartOfRound.Awake += Hook_1;
The DetourContext wouldn't dispose of itself, and Hook_1 would run before Hook_2 because it also got applied to it. With this patcher, the DetourContext will dispose of itself and Hook_2 will run before Hook_1 like it should.
Highlights
From source dataLoaders
Runs on BepInEx.
Footprint
Rated a light load on a server.
Last update
Its author last shipped an update 22 mo ago.
Hamunii Detour Context Dispose Fix Valheim Publish on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
- Server type needed
- BepInEx
- Server load
- light
- Smallest plan we suggest
- Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 1.0.3, released 2025-01-01
Game versions by loader
| Loader | Game versions | Newest |
|---|---|---|
| BepInEx |
From 1 recorded build of Hamunii Detour Context Dispose Fix Valheim Publish.
Run Hamunii Detour Context Dispose Fix Valheim Publish on a Valheim server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogLibraries & compatibility
Foundations and fixes other mods build on. Usually installed because something else needs it.
Compatibility
- Game
- Valheim
- Loaders
- BepInEx
- Requires
- One-click install needs a BepInEx server.
Verified at the source
- ✓ThunderstoreOfficial listing, checked 2026-10-02Open ↗
- ✓AuthorCATALYSTC, as published on Thunderstore
- ✓LicenseNot published by the sourceFree






