RacesOfValheim/JotunnModStub/Butler
kanym e042579e17 Fix Bone Servant crash when dropping a payload it can't place
DropPayload() cloned template.m_itemData straight off the ObjectDB
prefab and handed the clone to ItemDrop.DropItem, which instantiates
item.m_dropPrefab - a field a clone off a raw prefab never carries
(same pitfall already fixed in AswidBloodPotions.MakeFood). The result
was an unhandled ArgumentException instantiating null.

This fires whenever a servant is holding something with nowhere sealed
to put it - e.g. chests without the sigil item yet, as in the bug
report - and since the exception aborts before m_payload.Clear() runs,
the same broken load is retried, and crashes, on every AI tick after:
relogging or killing the servant doesn't clear it, because the payload
lives in the ZDO, not the character.

Fix: set clone.m_dropPrefab = prefab before dropping, same as the
existing fix.
2026-08-25 22:48:30 +02:00
..
BoneServant.cs warvulture 2026-08-16 07:44:44 +02:00
BoneServantAI.cs Fix Bone Servant crash when dropping a payload it can't place 2026-08-25 22:48:30 +02:00
ButlerConfig.cs warvulture 2026-08-16 07:44:44 +02:00
ButlerStation.cs warvulture 2026-08-16 07:44:44 +02:00
ServantTableBehaviour.cs warvulture 2026-08-16 07:44:44 +02:00