fix(warvulture): strip dependents first, no more Can't remove Humanoid at startup

The startup error came from WarVultureVisual.BuildTemplate, not from the
Ravager costume: its passes tried Humanoid before CharacterDrop. Components
another one still requires now wait for a later pass.
This commit is contained in:
kanym 2026-10-17 20:24:43 +02:00
commit d05cea7f08
3 changed files with 11 additions and 1 deletions

View file

@ -229,6 +229,7 @@ namespace RacesOfValheim
if (component is MeshFilter) continue;
if (component is MeshRenderer) continue;
if (component is SkinnedMeshRenderer) continue;
if (ModelBorrow.IsRequired(component)) continue; // a later pass, once its dependent is gone
Object.DestroyImmediate(component);