private void Awake() { Ruins.LoadAll(); Structural.InitMaterialLookup(); On.ZNetScene.Awake += ZNetSceneAwake; On.LocationProxy.SpawnLocation += OnSpawnLocation; }
private bool OnSpawnLocation(On.LocationProxy.orig_SpawnLocation orig, LocationProxy self) { bool result = orig(self); if (result) { Jotunn.Logger.LogInfo($"LocationProxy.SpawnLocation {self.m_instance.name} with {self.m_instance.transform.childCount} items"); Structural.SettleIntegrity(self.m_instance); } return(result); }