

Monstrum mods are fine by itself but it can have problems with other mods that adds locations.
There is sometimes duplication with location proxies so you may devote double offerings to summon a boss.
And there was problem with valheimcuisine's location too. And this mod fixes that.
MonstrumLocationManagerFix is a small BepInEx plugin for Valheim that fixes Therzie's Monstrum and MonstrumDeepNorth location registration at runtime.
In Therzie's location registration flow, LocationManager.Location.AddLocationToZoneSystem can use:
UnityEngine.Object.Destroy(...)when removing the existing enabled LocationProxy from ZoneSystem.m_locationProxyPrefab.
In this path, deferred destruction can leave the old proxy alive until later in the frame while a replacement proxy is added immediately. That can cause duplicate or conflicting location proxy behavior.
This plugin changes that call to:
UnityEngine.Object.DestroyImmediate(...)so the cleanup happens immediately during location setup.
This plugin only patches loaded assemblies that belong to these plugin GUIDs:
Therzie.MonstrumTherzie.MonstrumDeepNorthIt only targets this method:
LocationManager.Location.AddLocationToZoneSystemThis is a normal BepInEx plugin, not a preloader patcher.
At startup it:
Monstrum and/or MonstrumDeepNorth are loaded.LocationManager.Location.AddLocationToZoneSystem in those assemblies.Destroy(Object) with DestroyImmediate(Object) in memory.BepInEx/pluginsMonstrum.dllMonstrumDeepNorth.dllSuccessful runtime patch:
Loading [MonstrumLocationManagerFix 1.0.0]Patched Monstrum.LocationManager.Location.AddLocationToZoneSystem and replaced 1 Destroy call(s).Patched MonstrumDeepNorth.LocationManager.Location.AddLocationToZoneSystem and replaced 1 Destroy call(s).Already fixed in the loaded target assembly:
Verified Monstrum.LocationManager.Location.AddLocationToZoneSystem is already using DestroyImmediate.Patch summary:
Applied runtime patch to 2 LocationManager method(s).This plugin is intentionally narrow.
An earlier version solved the issue by rewriting other mods' DLL files on disk. This version keeps the same fix but applies it at runtime instead.