fix TheCollector being used :(

This commit is contained in:
Mister_Nebula 2022-03-20 00:21:40 +00:00 committed by JohnCorby
parent a0c311613f
commit ba9048ada8
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using Cysharp.Threading.Tasks;
using QSB.EchoesOfTheEye.Ghosts.WorldObjects;
using QSB.Utility;
using QSB.WorldSync;
using System.Collections.Generic;
using System.Linq;
@ -23,7 +24,7 @@ internal class GhostManager : WorldObjectManager
{
QSBWorldSync.Init<QSBGhostEffects, GhostEffects>();
QSBWorldSync.Init<QSBGhostSensors, GhostSensors>();
QSBWorldSync.Init<QSBGhostBrain, GhostBrain>();
QSBWorldSync.Init<QSBGhostBrain, GhostBrain>(QSBWorldSync.GetUnityObjects<GhostBrain>().Where(x => x.gameObject.activeSelf).SortDeterministic());
_hotelDirector = QSBWorldSync.GetUnityObjects<GhostHotelDirector>().First();
_partyPathDirector = QSBWorldSync.GetUnityObjects<GhostPartyPathDirector>().First();

View File

@ -133,7 +133,10 @@ public class QSBGhostBrain : WorldObject<GhostBrain>
AttachedObject._controller = AttachedObject.GetComponent<GhostController>();
AttachedObject._sensors = AttachedObject.GetComponent<GhostSensors>();
_data = new();
_data.threatAwareness = AttachedObject._data.threatAwareness;
if (AttachedObject._data != null)
{
_data.threatAwareness = AttachedObject._data.threatAwareness;
}
}
public void Start()