

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.
Also patches into EWD to fix Monsterlabz locations.
MonstrumLocationManagerFix is a small BepInEx plugin for Valheim that fixes Therzie's Monstrum and MonstrumDeepNorth location registration at runtime and adds a narrow compatibility guard for Expand World Data.
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.
It also patches ExpandWorldData.DataManager.CleanGhostInit(ZNetView) to safely skip the cleanup when a spawned ghost object has no ZDO, avoiding the server-side NullReferenceException seen during some custom location spawns.
This plugin patches loaded assemblies that belong to these plugin GUIDs:
Therzie.MonstrumTherzie.MonstrumDeepNorthexpand_world_dataIt targets these methods:
LocationManager.Location.AddLocationToZoneSystemExpandWorldData.DataManager.CleanGhostInit(ZNetView)This 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.Expand World Data is present, applies a prefix patch to CleanGhostInit(ZNetView) that bails out when the spawned ghost object has no ZDO.BepInEx/pluginsMonstrum.dllMonstrumDeepNorth.dllExpandWorldData.dllSuccessful runtime patch:
Loading [MonstrumLocationManagerFix 1.0.1]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).Expand World Data compatibility patch:
Applied Expand World Data compatibility patch to DataManager.CleanGhostInit(ZNetView).Skipped Expand World Data ghost cleanup because the spawned ZNetView had no ZDO.This plugin is intentionally narrow.
Expand World Data ghost cleanup guardAn 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.