warvulture
This commit is contained in:
parent
4b95e705e7
commit
ee5a2e2e7b
12 changed files with 314 additions and 76 deletions
|
|
@ -336,7 +336,13 @@ namespace RacesOfValheim
|
|||
wear.m_hitEffect = new EffectList();
|
||||
}
|
||||
|
||||
if (prefab.GetComponent<ZNetView>() == null) prefab.AddComponent<ZNetView>();
|
||||
// The workbench this is cloned from brings a persistent ZNetView with it, so this is
|
||||
// belt as well as braces - but it is the line the NEST turned out to need after players
|
||||
// reported hives gone at world load, and a counter that saves only because of what
|
||||
// it was copied from is one refactor away from not saving at all.
|
||||
ZNetView view = prefab.GetComponent<ZNetView>() ?? prefab.AddComponent<ZNetView>();
|
||||
view.m_persistent = true;
|
||||
|
||||
prefab.AddComponent<SvermHiveMarket>();
|
||||
|
||||
Jotunn.Managers.PieceManager.Instance.AddPiece(new Jotunn.Entities.CustomPiece(prefab, fixReference: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue