Source-checkedLibraries & compatibility

Hamunii Detour Context Dispose Fix Valheim Publish

by CATALYSTC · for Valheim

A BepInEx patcher to fix MonoMod.RuntimeDetour's DetourContext.Dispose not working. By Hamunii.

6.8KDownloads
22 mo agoLast updated
BepInExLoaders
ThunderstoreSource

About Hamunii Detour Context Dispose Fix Valheim Publish

From Thunderstore

A 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 data

Loaders

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

LoaderGame versionsNewest
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 catalog
Listed on Thunderstore as “Content”

Libraries & 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

Hamunii Detour Context Dispose Fix Valheim Publish, answered

Generated from the mod’s own source data.

Which loaders does it support?

BepInEx.

Is it free?

Yes. Hamunii Detour Context Dispose Fix Valheim Publish is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Hamunii Detour Context Dispose Fix Valheim Publish on a Valheim server.

Deploy in about a minute from $9.99 a month, then add Hamunii Detour Context Dispose Fix Valheim Publish in one click.