1.0 compatibility
This commit is contained in:
parent
5104f86ede
commit
6193b3ee2d
33 changed files with 712 additions and 49 deletions
|
|
@ -122,8 +122,9 @@ namespace RacesOfValheim
|
|||
VisEquipment vis = m_player.GetComponent<VisEquipment>();
|
||||
if (vis != null)
|
||||
{
|
||||
vis.SetHairItem("");
|
||||
vis.SetBeardItem("");
|
||||
// Since Valheim 1.0 these take an item hash, not a prefab name. 0 is the empty slot.
|
||||
vis.SetHairItem(0);
|
||||
vis.SetBeardItem(0);
|
||||
|
||||
// Hide Helmet
|
||||
var helmetObj = HarmonyLib.Traverse.Create(vis).Field<GameObject>("m_helmetItemInstance").Value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue